Closed haroldcarr closed 4 months ago
Signed-off-by: Harold Carrr harold.carr@oracle.com
This adds a test case that expects InvalidPresentationData when someone tries to create a range proof with a value that is outside the required range.
InvalidPresentationData
Without the fix, it panics:
thread 'out_of_range_panic' panicked at 'attempt to add with overflow', src/presentation/range.rs:147:38
This PR adds a check for out of range in presentation/range.rs in RangeBuilder.commit.
presentation/range.rs
RangeBuilder.commit
DCO didn’t work. I think the issue is that your name has three “r”s in it Carrr. Arrggh…. :-(
Carrr
hmm, can't even spell my own name!?
Signed-off-by: Harold Carrr harold.carr@oracle.com
This adds a test case that expects
InvalidPresentationData
when someone tries to create a range proof with a value that is outside the required range.Without the fix, it panics:
thread 'out_of_range_panic' panicked at 'attempt to add with overflow', src/presentation/range.rs:147:38
This PR adds a check for out of range in
presentation/range.rs
inRangeBuilder.commit
.