celo-org / celo-bls-snark-rs

Implements SNARK-friendly BLS signatures
https://celo.org
Apache License 2.0
84 stars 21 forks source link

Ensure all msgs are batch verified + don't re-alloc #181

Closed psivesely closed 4 years ago

psivesely commented 4 years ago

If there are more messages that public keys only the messages that have public keys are verified because of how zip works. Also, allocate (message hash, pubkey) Vec using with_capacity to avoid needing to re-alloc.

kobigurk commented 4 years ago

@psivesely can you run cargo fmt on the repository?