initial commit

This commit is contained in:
Srinath Setty
2019-12-16 14:41:07 -08:00
parent be426e7bb6
commit 95b9ad35a6
33 changed files with 8986 additions and 14 deletions

15
src/errors.rs Normal file
View File

@@ -0,0 +1,15 @@
use std::fmt;
pub struct ProofVerifyError;
impl fmt::Display for ProofVerifyError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Proof verification failed")
}
}
impl fmt::Debug for ProofVerifyError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{{ file: {}, line: {} }}", file!(), line!())
}
}