File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,9 @@ features = ["nightly"]
2020[dependencies ]
2121merlin = " 2"
2222rand = " 0.7"
23- serde = " 1.0"
24- serde_derive = " 1.0"
25- failure = " 0.1.5"
26- failure_derive = " 0.1.5"
23+ serde = " 1"
24+ serde_derive = " 1"
25+ thiserror = " 1"
2726curve25519-dalek = { version = " 2" , features = [" serde" ] }
2827
2928[dev-dependencies ]
Original file line number Diff line number Diff line change 1+ use thiserror:: Error ;
12/// An error during proving or verification, such as a verification failure.
2- #[ derive( Debug , Fail ) ]
3+ #[ derive( Debug , Error ) ]
34pub enum ProofError {
45 /// Something is wrong with the proof, causing a verification failure.
5- #[ fail ( display = "Verification failed." ) ]
6+ #[ error ( "Verification failed." ) ]
67 VerificationFailure ,
78 /// Occurs during batch verification if the batch parameters are mis-sized.
8- #[ fail ( display = "Mismatched parameter sizes for batch verification." ) ]
9+ #[ error ( "Mismatched parameter sizes for batch verification." ) ]
910 BatchSizeMismatch ,
1011}
Original file line number Diff line number Diff line change 2020//! Docs will only build on nightly Rust until
2121//! [RFC 1990 stabilizes](https://github.com/rust-lang/rust/issues/44732).
2222
23- extern crate failure;
24- #[ macro_use]
25- extern crate failure_derive;
26-
2723extern crate serde;
2824
2925#[ doc( hidden) ]
You can’t perform that action at this time.
0 commit comments