narwhal
narwhal copied to clipboard
[crypto] accept references in batch verification
Problem: In Narwhal crypto, we used to: Copy a Public Key every time we want to verify a signature (once from copying out of the 'committee' struct, the second time copying into the narwhal references function, which does not take in references)
This was probably fine with ed25519, where the public keys were already serialized bytes, but BLS12381 stores public keys in some other form - which adds extra cost very time we deep-copy the public keys. Note that this happened 30 times for each certificate.
@punwai is this still something you want to go forward? If yes could you please the linter & tests as they seem to fail?
@akichidis I think we'll definitely try to merge this, but after another PR goes through :)
@huitseeker Added comments! Will ping again when this is rebased and refactored.
@punwai What's the state of this one?
Made obsolete by https://github.com/MystenLabs/fastcrypto/pull/90