w3f / schnorrkel

Schnorr VRFs and signatures on the Ristretto group
BSD 3-Clause "New" or "Revised" License
309 stars 93 forks source link

Adopt the new secret key interface #82

Open burdges opened 2 years ago

burdges commented 2 years ago

We should replace the loose public key interface we inherited from ed25519-dalek:

We'll basically make SecretKey be a keypair that contains the PublicKey. I'm already doing the ring VRF this way, so then we can backport stuff. It's kind an overhaul of the whole crate interface, but once someone asked me how to use schnorrkel with the randomness in merlin disabled, so likely worth doing.

burdges commented 1 year ago

We should decide if RistrettoBoth really makes sense. We could make it lazy but then we'd need interior mutability.