dalek-cryptography / bulletproofs

A pure-Rust implementation of Bulletproofs using Ristretto.
MIT License
1.02k stars 218 forks source link

Replace failure with thiserror to have std-compatible errors #308

Closed hdevalence closed 4 years ago

hdevalence commented 4 years ago

Because std::error::Error is not part of core, this commit feature-gates the derived Error implementation on whether std is available. If we are in a no_std context, the Error enums are just plain enums with no Error implementation.

Closes #306

Follows on from #307, so this should be merged only after that one is.

hdevalence commented 4 years ago

Rebased onto current develop.

hdevalence commented 4 years ago

Fixed a missing display and feature-gating on the serde implementations in the R1CS module.