Neptune-Crypto / neptune-core

anonymous peer-to-peer cash
Apache License 2.0
24 stars 7 forks source link

Rewrite `compute_indices` for new `MmrMembershipProof` structure #167

Open Sword-Smith opened 1 month ago

Sword-Smith commented 1 month ago

leaf_index was removed from the MmrMembershipProof structure in 991926e3c409d14a4254f143c96eb122d8d78c0a. The ComputeIndices snippet in src/models/blockchain/transaction/validity/tasm/compute_indices.rs must be rewritten to reflect this fact. This snippet should instead get the AOCL leaf index as an explicit parameter.