aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-04-10 06:18:08 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-04-10 06:18:08 +0800
commitab601f08e7b805157a0fa7ce162816c0157c89cb (patch)
tree6f38bfd7097de3cfcad43631e2361a3705b0dab2
parent51e69f9763a8d7da268c6ebcb6e9678b0dcdfd91 (diff)
downloaddexon-bls-ab601f08e7b805157a0fa7ce162816c0157c89cb.tar
dexon-bls-ab601f08e7b805157a0fa7ce162816c0157c89cb.tar.gz
dexon-bls-ab601f08e7b805157a0fa7ce162816c0157c89cb.tar.bz2
dexon-bls-ab601f08e7b805157a0fa7ce162816c0157c89cb.tar.lz
dexon-bls-ab601f08e7b805157a0fa7ce162816c0157c89cb.tar.xz
dexon-bls-ab601f08e7b805157a0fa7ce162816c0157c89cb.tar.zst
dexon-bls-ab601f08e7b805157a0fa7ce162816c0157c89cb.zip
fix comment
-rw-r--r--go/blscgo/bls.go11
1 files changed, 8 insertions, 3 deletions
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)