Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use IndexMap to preserve insertion ordering #1

Open
wants to merge 1 commit into
base: kariy/public-path
Choose a base branch
from

Conversation

kariy
Copy link
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