From ab601f08e7b805157a0fa7ce162816c0157c89cb Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Mon, 10 Apr 2017 07:18:08 +0900 Subject: fix comment --- go/blscgo/bls.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'go/blscgo') diff --git a/go/blscgo/bls.go b/go/blscgo/bls.go index 10892f9..7943b95 100644 --- a/go/blscgo/bls.go +++ b/go/blscgo/bls.go @@ -11,8 +11,13 @@ import "C" import "fmt" import "unsafe" +// CurveFp254BNb -- 254 bit curve const CurveFp254BNb = 0 + +// CurveFp382_1 -- 382 bit curve 1 const CurveFp382_1 = 1 + +// CurveFp382_2 -- 382 bit curve 2 const CurveFp382_2 = 2 // Init -- @@ -20,12 +25,12 @@ func Init(curve int) { C.blsInit(C.int(curve), C.BLS_MAX_OP_UNIT_SIZE) } -// getMaxOpUnitSize -- +// GetMaxOpUnitSize -- func GetMaxOpUnitSize() int { return int(C.BLS_MAX_OP_UNIT_SIZE) } -// getOpUnitSize -- +// GetOpUnitSize -- func GetOpUnitSize() int { return int(C.blsGetOpUnitSize()) } @@ -332,7 +337,7 @@ func (sec *SecretKey) GetPublicKey() (pub *PublicKey) { return pub } -// Constant Time Sign -- +// Sign -- Constant Time version func (sec *SecretKey) Sign(m string) (sign *Sign) { sign = new(Sign) buf := []byte(m) -- cgit v1.2.3