Closed kobigurk closed 4 years ago
This PR adds support for padding the validator set by passing another maximum validators parameter. This is almost 100% based on @lucasege's work.
We had a bug in encode_public_key where it checks c1 == half instead of the updated c1 == 0 as mentioned in https://github.com/celo-org/celo-bls-snark-rs/issues/149.
encode_public_key
c1 == half
c1 == 0
Tests on the encoding.
Description
This PR adds support for padding the validator set by passing another maximum validators parameter. This is almost 100% based on @lucasege's work.
Drive-by change
We had a bug in
encode_public_key
where it checksc1 == half
instead of the updatedc1 == 0
as mentioned in https://github.com/celo-org/celo-bls-snark-rs/issues/149.Tested
Tests on the encoding.