diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bls_c.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bls_c.cpp b/src/bls_c.cpp index 87a77d1..a6c24e2 100644 --- a/src/bls_c.cpp +++ b/src/bls_c.cpp @@ -783,6 +783,10 @@ int blsVerifyPop(const blsSignature *sig, const blsPublicKey *pub) return ((const bls2::Signature*)sig)->verify(*(const bls2::PublicKey*)pub); } +void blsIdSetInt(blsId *id, int x) +{ + mclBnFr_setInt(&id->v, x); +} size_t blsIdSerialize(void *buf, size_t maxBufSize, const blsId *id) { return mclBnFr_serialize(buf, maxBufSize, &id->v); |