stellar / slingshot

A new blockchain architecture under active development, with a strong focus on scalability, privacy and safety
Apache License 2.0
415 stars 61 forks source link

schnorr: batch verification to use OS RNG once for the seed #351

Open oleganza opened 5 years ago

oleganza commented 5 years ago

This is suggested by @elichai: it's not very efficient to sample OS RNG for each signature added to the batch verifier. Instead, let's initialize Transcript instance with OS RNG, and then squeeze a challenge scalar for each added signature.