aboutsummaryrefslogtreecommitdiffstats
path: root/go/bls/mcl.go
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-06-06 07:50:28 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-06-06 07:50:28 +0800
commitb25e356ce0f2ff7e57b789edad25fbbe26bb04f8 (patch)
tree1e2b5d0302b60a81f8ca7c7b56aed88501d91ee2 /go/bls/mcl.go
parentfe3fd87802fca0209092cfc29e69e08259a0ea96 (diff)
downloaddexon-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/bls/mcl.go')
-rw-r--r--go/bls/mcl.go11
1 files changed, 0 insertions, 11 deletions
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 {