aboutsummaryrefslogtreecommitdiffstats
path: root/go/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/main.go')
-rw-r--r--go/main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/go/main.go b/go/main.go
index 956b8b2..1ad8cc1 100644
--- a/go/main.go
+++ b/go/main.go
@@ -104,6 +104,15 @@ func testAdd() {
verifyTrue(sign1.Verify(pub1, m))
}
+func testPop() {
+ fmt.Println("testPop")
+ sec := bls.NewSecretKey()
+ sec.Init()
+ pop := sec.GetPop()
+ verifyTrue(pop.VerifyPop(sec.GetPublicKey()))
+ sec.Init()
+ verifyTrue(!pop.VerifyPop(sec.GetPublicKey()))
+}
func main() {
fmt.Println("init")
bls.Init()
@@ -145,4 +154,5 @@ func main() {
testRecoverSecretKey()
testAdd()
testSign()
+ testPop()
}