Skip to content

Use IndexMap to preserve insertion ordering#1

Open
kariy wants to merge 3 commits into
kariy/public-pathfrom
kariy/indexmap
Open

Use IndexMap to preserve insertion ordering#1
kariy wants to merge 3 commits into
kariy/public-pathfrom
kariy/indexmap

Conversation

@kariy
Copy link
Copy Markdown
Member

@kariy kariy commented Dec 19, 2024

This is so that when we return the MultiProof value from the RPC, the resultant list will be ordered from root to leaves. This is mainly to support using pathfinder proofs verification logic in snos where the nodes are not paired with its hash and are assumed to be arranged in the certain order.

https://github.com/cartridge-gg/snos/blob/811f2201516d9430c28d94c97ff2902ba9adf86a/crates/rpc-client/src/pathfinder/proofs.rs#L109-L126

TODO: add more elaboration for future reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant