From 11557e8e6001d28afdca1b5aa78b075e0c8defc3 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Wed, 14 Sep 2016 15:30:10 +0900 Subject: go fmt --- go/bls/bls.go | 8 ++++---- go/main.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'go') diff --git a/go/bls/bls.go b/go/bls/bls.go index b94fec2..c59b55c 100644 --- a/go/bls/bls.go +++ b/go/bls/bls.go @@ -113,7 +113,7 @@ func (sec *SecretKey) Init() { } func (sec *SecretKey) Add(rhs *SecretKey) { - C.blsSecretKeyAdd(sec.self, rhs.self); + C.blsSecretKeyAdd(sec.self, rhs.self) } func (sec *SecretKey) GetMasterSecretKey(k int) (msk []*SecretKey) { @@ -224,7 +224,7 @@ func (pub *PublicKey) SetStr(s string) error { } func (pub *PublicKey) Add(rhs *PublicKey) { - C.blsPublicKeyAdd(pub.self, rhs.self); + C.blsPublicKeyAdd(pub.self, rhs.self) } func (sec *PublicKey) Set(msk []*PublicKey, id *Id) { v := makePublicKeyPointerArray(msk) @@ -290,7 +290,7 @@ func (sec *SecretKey) Sign(m string) (sign *Sign) { } func (sign *Sign) Add(rhs *Sign) { - C.blsSignAdd(sign.self, rhs.self); + C.blsSignAdd(sign.self, rhs.self) } func (sign *Sign) Recover(signVec []*Sign, idVec []*Id) { sv := makeSignPointerArray(signVec) @@ -304,5 +304,5 @@ func (sign *Sign) Verify(pub *PublicKey, m string) bool { } func (sign *Sign) VerifyPop(pub *PublicKey) bool { - return C.blsSignVerifyPop(sign.self, pub.self) == 1; + return C.blsSignVerifyPop(sign.self, pub.self) == 1 } diff --git a/go/main.go b/go/main.go index 657cf7d..425dc73 100644 --- a/go/main.go +++ b/go/main.go @@ -47,7 +47,7 @@ func testSign() { msk := sec0.GetMasterSecretKey(k) mpk := bls.GetMasterPublicKey(msk) - idTbl := []uint64{ 3, 5, 193, 22, 15 } + idTbl := []uint64{3, 5, 193, 22, 15} n := len(idTbl) secVec := make([]*bls.SecretKey, n) -- cgit v1.2.3