diff options
-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 -- |