aboutsummaryrefslogtreecommitdiffstats
path: root/go/bls/bls.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/bls/bls.go')
-rw-r--r--go/bls/bls.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/bls/bls.go b/go/bls/bls.go
index 91da636..deeeeb5 100644
--- a/go/bls/bls.go
+++ b/go/bls/bls.go
@@ -444,7 +444,7 @@ func (sign *Sign) Recover(signVec []Sign, idVec []ID) error {
func (sign *Sign) Verify(pub *PublicKey, m string) bool {
buf := []byte(m)
// #nosec
- return C.blsVerify(sign.getPointer(), pub.getPointer(), (*C.char)(unsafe.Pointer(&buf[0])), C.size_t(len(buf))) == 1
+ return C.blsVerify(sign.getPointer(), pub.getPointer(), unsafe.Pointer(&buf[0]), C.size_t(len(buf))) == 1
}
// VerifyPop --