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.
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.
Also fixes a test for a previous PR https://github.com/antouhou/rs-merkle/pull/28