From 6a59ca023e4bef10f1f4f1eea3903ccdecea2d5e Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Wed, 7 Jun 2017 05:32:43 +0900 Subject: add blsIdSetInt --- src/bls_c.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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); -- cgit v1.2.3