From b25e356ce0f2ff7e57b789edad25fbbe26bb04f8 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 6 Jun 2017 08:50:28 +0900 Subject: remove init --- go/bls/bls.go | 2 +- go/bls/mcl.go | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) (limited to 'go') diff --git a/go/bls/bls.go b/go/bls/bls.go index 61b2587..8495770 100644 --- a/go/bls/bls.go +++ b/go/bls/bls.go @@ -17,7 +17,7 @@ func Init(curve int) error { if err != 0 { return fmt.Errorf("ERR Init curve=%d", curve) } - return mclInit(curve) // QQQ + return nil } // GetMaxOpUnitSize -- diff --git a/go/bls/mcl.go b/go/bls/mcl.go index c7a5ffd..d523308 100644 --- a/go/bls/mcl.go +++ b/go/bls/mcl.go @@ -17,17 +17,6 @@ const CurveFp382_1 = C.mclBn_CurveFp382_1 // CurveFp382_2 -- 382 bit curve 2 const CurveFp382_2 = C.mclBn_CurveFp382_2 -// Init -- -// call this function before calling all the other operations -// this function is not thread safe -func mclInit(curve int) error { - err := C.mclBn_init(C.int(curve), C.MCLBN_FP_UNIT_SIZE) - if err != 0 { - return fmt.Errorf("ERR mclBn_init curve=%d", curve) - } - return nil -} - //////////////////////////////////////////////// // Fr -- type Fr struct { -- cgit v1.2.3