From 5290e1d1ffd2f49828a135318e64bec891cf3b3a Mon Sep 17 00:00:00 2001 From: "Diego F. Aranha" Date: Thu, 10 Jun 2021 22:22:51 +0200 Subject: [PATCH] Fix support to latest version of RELIC (#207) * Update to RELIC's change from COMP to CFLAGS. * Rename RELIC master branch to main. * Remove RELIC include that creates conflicts with TEST_CASE macro. * Remove bn_init from private_key.cpp because AUTO is enforced in the build. * Fix the BN size. * Update Readme to force CI rerun --- README.md | 2 +- src/privatekey.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 03f5031f7..343ad8d40 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Features: * Batch verification * [Python bindings](https://github.com/Chia-Network/bls-signatures/tree/main/python-bindings) * [Pure python bls12-381 and signatures](https://github.com/Chia-Network/bls-signatures/tree/main/python-impl) -* [JavaScript bindings](https://github.com/Chia-Network/bls-signatures/tree/main/js-bindings) (currently out of date - a great first issue!) +* [JavaScript bindings](https://github.com/Chia-Network/bls-signatures/tree/main/js-bindings) ## Before you start diff --git a/src/privatekey.cpp b/src/privatekey.cpp index 3a9c8d6ac..e8e51aa69 100644 --- a/src/privatekey.cpp +++ b/src/privatekey.cpp @@ -258,7 +258,7 @@ void PrivateKey::AllocateKeyData() { assert(!keydata); keydata = Util::SecAlloc(1); - bn_init(keydata, RLC_BN_SIZE); + keydata->alloc = RLC_BN_SIZE; bn_zero(keydata); }