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

Traversal Helpers #39

Closed
nasdf opened this issue Oct 19, 2021 · 1 comment
Closed

Traversal Helpers #39

nasdf opened this issue Oct 19, 2021 · 1 comment

Comments

@nasdf
Copy link
Contributor

nasdf commented Oct 19, 2021

Since Ethereum state tries consist of branch, extension, or leaf nodes it would be helpful to have some default traversal functions. If I understand the IPLD specs correctly this could be implemented with a selector.

Some ideas for traversal paths that would be helpful:

  • /<stateRootCID>/01 to retrieve the state trie node at prefix path 01
  • /<stateRootCID>/<address> to retrieve the account leaf node
  • /<stateRootCID>/<address>/state to retrieve the account storage root

These could also have variants for producing merkle proofs for any node.

@nasdf
Copy link
Contributor Author

nasdf commented Jan 17, 2022

Closed by #45

@nasdf nasdf closed this as completed Jan 17, 2022
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

No branches or pull requests

1 participant