Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Compute index/position in Merkle tree correctly #8859

Closed
Tracked by #7226
mitsuaki-u opened this issue Aug 17, 2023 · 0 comments
Closed
Tracked by #7226

Compute index/position in Merkle tree correctly #8859

mitsuaki-u opened this issue Aug 17, 2023 · 0 comments

Comments

@mitsuaki-u
Copy link
Contributor

mitsuaki-u commented Aug 17, 2023

Expected behavior

For merkle tree index we unset the most significant bit of an encoded index in idxs in order to get the position in the tree. To do this we must ensure that there are at least two bits, i.e. the value must be larger than 1.

Actual behavior

idx[0] was checked for equality to 0

Steps to reproduce

Check recover message logic verify hook

Which version(s) does this affect? (Environment, OS, etc...)

6.0.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants