ZenGo-X / curv

Rust language general purpose elliptic curve cryptography.
MIT License
264 stars 111 forks source link

No panic when new_random generates invalid value #114

Closed jimmyyip-crypto closed 3 years ago

jimmyyip-crypto commented 3 years ago

This PR prevents the crate from panic by randomize another key when the previously generated one is invalid, though it's very unlikely to happen.

omershlo commented 3 years ago

awesome !