crate-crypto / go-ipa

A Go implementation of cryptographic primitives for Verkle Trees
https://verkle.dev
Apache License 2.0
32 stars 14 forks source link

Remove panics #56

Closed jsign closed 1 year ago

jsign commented 1 year ago

This PR main goal is to remove existing panics in the database.

The changes can be understood in two buckets:

Only one panic is left in a codepath that doesn't (and shouldn't) happen in real code. I still think we should solve it, and I go in decent length explaining which is it and why/how.

Fixes https://github.com/crate-crypto/go-ipa/issues/12 Fixes https://github.com/crate-crypto/go-ipa/issues/4