mirror of
https://github.com/arnaucube/Nova.git
synced 2026-01-10 16:11:29 +01:00
Add InputOutputMismatch error.
This commit is contained in:
committed by
Srinath Setty
parent
f87f9a0580
commit
cf5d708202
@@ -12,6 +12,8 @@ pub enum NovaError {
|
||||
InvalidInputLength,
|
||||
/// returned if the supplied witness is not of the right length
|
||||
InvalidWitnessLength,
|
||||
/// returned if the supplied instance input does not match the previous instance output
|
||||
InputOutputMismatch,
|
||||
/// returned if the supplied witness is not a satisfying witness to a given shape and instance
|
||||
UnSat,
|
||||
/// returned when the supplied compressed commitment cannot be decompressed
|
||||
|
||||
@@ -399,7 +399,7 @@ impl<G: Group> RelaxedR1CSInstance<G> {
|
||||
}
|
||||
for i in 0..self.Y_last.len() {
|
||||
if self.Y_last[i] != U2.X[i] {
|
||||
return Err(NovaError::InvalidInputLength);
|
||||
return Err(NovaError::InputOutputMismatch);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user