diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-06 07:50:28 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-06 07:50:28 +0800 |
commit | b25e356ce0f2ff7e57b789edad25fbbe26bb04f8 (patch) | |
tree | 1e2b5d0302b60a81f8ca7c7b56aed88501d91ee2 /go | |
parent | fe3fd87802fca0209092cfc29e69e08259a0ea96 (diff) | |
download | dexon-bls-b25e356ce0f2ff7e57b789edad25fbbe26bb04f8.tar dexon-bls-b25e356ce0f2ff7e57b789edad25fbbe26bb04f8.tar.gz dexon-bls-b25e356ce0f2ff7e57b789edad25fbbe26bb04f8.tar.bz2 dexon-bls-b25e356ce0f2ff7e57b789edad25fbbe26bb04f8.tar.lz dexon-bls-b25e356ce0f2ff7e57b789edad25fbbe26bb04f8.tar.xz dexon-bls-b25e356ce0f2ff7e57b789edad25fbbe26bb04f8.tar.zst dexon-bls-b25e356ce0f2ff7e57b789edad25fbbe26bb04f8.zip |
remove init
Diffstat (limited to 'go')
-rw-r--r-- | go/bls/bls.go | 2 | ||||
-rw-r--r-- | go/bls/mcl.go | 11 |
2 files changed, 1 insertions, 12 deletions
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 { |