Closed themighty1 closed 9 months ago
@antouhou , hey, will you be able to look into this PR?
@antouhou Hey, this is really a bug, this PR should be merged.
Hi @themighty1 @ququzone! I've released version 1.4.2 on the crates.io that contains that fix: https://crates.io/crates/rs_merkle. Thank you!
This PR fixes a bug where "unsorted" indices were used instead of the "sorted" ones. This would cause a failure during a proof verification if indices to-be-verified were passed unsorted.
The included test fails on the current v 1.4.1 but passes with the fix applied.