arnaucube
arnaucube/NovaPublic Self-hosted repository
Add InputOutputMismatch error.
porcuquine porcuquine@users.noreply.github.com
Tue, 05 Oct 2021 19:33:58 -0700
commit

cf5d708202d548446ce718df9ab8c660a33d662e

parent

f87f9a0580a5c5eba42451a62719465b9dd8ac5e

2 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/errors.rs → src/errors.rs

@@ -12,6 +12,8 @@ /// returned if the supplied input is not of the right length

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
M src/r1cs.rs → src/r1cs.rs

@@ -399,7 +399,7 @@ return Err(NovaError::InvalidInputLength);

} for i in 0..self.Y_last.len() { if self.Y_last[i] != U2.X[i] { - return Err(NovaError::InvalidInputLength); + return Err(NovaError::InputOutputMismatch); } } }