Skip to content

Commit

Permalink
Fix support to latest version of RELIC (Chia-Network#207)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
dfaranha authored Jun 10, 2021
1 parent 4e21aa6 commit e3d9ad0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/privatekey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ void PrivateKey::AllocateKeyData()
{
assert(!keydata);
keydata = Util::SecAlloc<bn_st>(1);
bn_init(keydata, RLC_BN_SIZE);
keydata->alloc = RLC_BN_SIZE;
bn_zero(keydata);
}

Expand Down

0 comments on commit e3d9ad0

Please sign in to comment.