diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-05 21:14:34 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-05 21:14:34 +0800 |
commit | f64a67ab06aded2609e51078e8b8db6db87b7b7a (patch) | |
tree | daec98461c7a78b9d0ca63a84478b001fd9d4eba /go/bls/bls.go | |
parent | 2707ef159e0d988b8e4c0d9ed644a9e47deae3f4 (diff) | |
download | dexon-bls-f64a67ab06aded2609e51078e8b8db6db87b7b7a.tar dexon-bls-f64a67ab06aded2609e51078e8b8db6db87b7b7a.tar.gz dexon-bls-f64a67ab06aded2609e51078e8b8db6db87b7b7a.tar.bz2 dexon-bls-f64a67ab06aded2609e51078e8b8db6db87b7b7a.tar.lz dexon-bls-f64a67ab06aded2609e51078e8b8db6db87b7b7a.tar.xz dexon-bls-f64a67ab06aded2609e51078e8b8db6db87b7b7a.tar.zst dexon-bls-f64a67ab06aded2609e51078e8b8db6db87b7b7a.zip |
use mclBn_Curve
Diffstat (limited to 'go/bls/bls.go')
-rw-r--r-- | go/bls/bls.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/go/bls/bls.go b/go/bls/bls.go index e2421c5..d516bb1 100644 --- a/go/bls/bls.go +++ b/go/bls/bls.go @@ -10,13 +10,13 @@ import "fmt" import "unsafe" // CurveFp254BNb -- 254 bit curve -const CurveFp254BNb = 0 +const CurveFp254BNb = C.mclBn_CurveFp254BNb // CurveFp382_1 -- 382 bit curve 1 -const CurveFp382_1 = 1 +const CurveFp382_1 = C.mclBn_CurveFp382_1 // CurveFp382_2 -- 382 bit curve 2 -const CurveFp382_2 = 2 +const CurveFp382_2 = C.mclBn_CurveFp382_2 // Init -- // call this function before calling all the other operations @@ -150,7 +150,7 @@ type SecretKey struct { // getPointer -- func (sec *SecretKey) getPointer() (p *C.blsSecretKey) { // #nosec - return (*C.blsSecretKey)(unsafe.Pointer(&sec.v[0])) + return (*C.blsSecretKey)(unsafe.Pointer(sec)) } // GetLittleEndian -- |