Add Pedersen::{commit,open,verify} MSM error handling (#34)

This commit is contained in:
2023-10-31 08:02:44 +01:00
committed by GitHub
parent 597ac27288
commit 8edea23c2f
9 changed files with 80 additions and 59 deletions

View File

@@ -31,8 +31,10 @@ pub enum Error {
NotExpectedLength,
#[error("Can not be empty")]
Empty,
#[error("Commitment verification failed")]
CommitmentVerificationFail,
#[error("Pedersen parameters length is not suficient")]
PedersenParamsLen,
#[error("Pedersen verification failed")]
PedersenVerificationFail,
}
/// FoldingScheme defines trait that is implemented by the diverse folding schemes. It is defined