aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--go/blscgo/bls.go2
-rw-r--r--go/main.go15
2 files changed, 10 insertions, 7 deletions
diff --git a/go/blscgo/bls.go b/go/blscgo/bls.go
index 782e8b2..10968b8 100644
--- a/go/blscgo/bls.go
+++ b/go/blscgo/bls.go
@@ -19,10 +19,12 @@ const CurveFp382_2 = 2
func Init(curve int) {
C.blsInit(C.int(curve), C.BLS_MAX_OP_UNIT_SIZE)
}
+
// getMaxOpUnitSize --
func GetMaxOpUnitSize() int {
return int(C.BLS_MAX_OP_UNIT_SIZE)
}
+
// getOpUnitSize --
func GetOpUnitSize() int {
return int(C.blsGetOpUnitSize())
diff --git a/go/main.go b/go/main.go
index 068471d..fa59afb 100644
--- a/go/main.go
+++ b/go/main.go
@@ -2,6 +2,7 @@ package main
import "fmt"
import "./blscgo"
+
//import "runtime"
//import "time"
@@ -157,13 +158,13 @@ func test(cp int) {
fmt.Println("end of test")
// put memory status
-/*
- runtime.GC()
- time.Sleep(2 * time.Second)
- var mem runtime.MemStats
- runtime.ReadMemStats(&mem)
- fmt.Println("mem=", mem)
-*/
+ /*
+ runtime.GC()
+ time.Sleep(2 * time.Second)
+ var mem runtime.MemStats
+ runtime.ReadMemStats(&mem)
+ fmt.Println("mem=", mem)
+ */
}
func main() {
fmt.Println("GetMaxOpUnitSize() = %d\n", blscgo.GetMaxOpUnitSize())