aboutsummaryrefslogtreecommitdiffstats
path: root/go/bls
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2016-09-07 08:15:39 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2016-09-07 08:15:39 +0800
commit75208d3bd90a9ce8852850f611b141848f4ef135 (patch)
tree13ec6d5b409479179b19beed2fb6f882525e9b35 /go/bls
parent5fa9d588563a14a18636bb228dc41f4ba5f6d457 (diff)
downloaddexon-bls-75208d3bd90a9ce8852850f611b141848f4ef135.tar
dexon-bls-75208d3bd90a9ce8852850f611b141848f4ef135.tar.gz
dexon-bls-75208d3bd90a9ce8852850f611b141848f4ef135.tar.bz2
dexon-bls-75208d3bd90a9ce8852850f611b141848f4ef135.tar.lz
dexon-bls-75208d3bd90a9ce8852850f611b141848f4ef135.tar.xz
dexon-bls-75208d3bd90a9ce8852850f611b141848f4ef135.tar.zst
dexon-bls-75208d3bd90a9ce8852850f611b141848f4ef135.zip
pass the pointer of Id
Diffstat (limited to 'go/bls')
-rw-r--r--go/bls/bls.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/bls/bls.go b/go/bls/bls.go
index 976c884..97f0fe4 100644
--- a/go/bls/bls.go
+++ b/go/bls/bls.go
@@ -155,7 +155,7 @@ func makeIdPointerArray(v []Id) (pv []*C.blsId) {
}
return pv
}
-func (sec *SecretKey) Set(msk []SecretKey, id Id) {
+func (sec *SecretKey) Set(msk []SecretKey, id *Id) {
v := makeSecretKeyPointerArray(msk)
C.blsSecretKeySet(sec.self, (**C.blsSecretKey)(unsafe.Pointer(&v[0])), C.size_t(len(msk)), id.self)
}
@@ -208,7 +208,7 @@ func (pub *PublicKey) SetStr(s string) error {
func (pub *PublicKey) Add(rhs *PublicKey) {
C.blsPublicKeyAdd(pub.self, rhs.self);
}
-func (sec *PublicKey) Set(msk []PublicKey, id Id) {
+func (sec *PublicKey) Set(msk []PublicKey, id *Id) {
v := makePublicKeyPointerArray(msk)
C.blsPublicKeySet(sec.self, (**C.blsPublicKey)(unsafe.Pointer(&v[0])), C.size_t(len(msk)), id.self)
}