This PR main goal is to remove existing panics in the database.
The changes can be understood in two buckets:
Panics in tests: aren't that relevant, but I've changed them to t.Fatal(f).
Panics in logic: These are the most important ones; mostly had to change some further APIs to return errors.
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.
This PR main goal is to remove existing panics in the database.
The changes can be understood in two buckets:
t.Fatal(f)
.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