paritytech / libsecp256k1

Pure Rust Implementation of secp256k1.
Apache License 2.0
172 stars 84 forks source link

needless panic during deserialization? #105

Closed Parth closed 2 years ago

Parth commented 2 years ago

https://github.com/paritytech/libsecp256k1/blob/master/src/lib.rs#L363

I believe we can just return an err here, @sorpaas would you take a PR that fixes this, or is there something I don't know about why this needs to panic?

sorpaas commented 2 years ago

Yes. Appreciate a fix!