Merkle proofs include usize
fields
#5226
Labels
A-base_node
Area - The Tari base node executable and libraries
C-bug
Category - fixes a bug, typically associated with an issue.
The codebase uses three different Merkle proof structures: Merkle mountain range (MMR) proofs, and merged and unmerged balanced binary Merkle tree (BBMT) proofs. In each case, the proof includes one or more
usize
fields. This could lead to issues between 32-bit and 64-bit targets.For MMR proofs:
usize
viaserde
derived traitsFor BBMT unmerged proofs:
usize
, but no encoding is yet specifiedFor BBMT merged proofs:
Vec<usize>
, but no encoding is yet specifiedVec<usize>
, but no encoding is yet specifiedIn each of these cases,
usize
should be replaced by eitheru32
oru64
as appropriate for the required use cases.The text was updated successfully, but these errors were encountered: