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

substrate encodings #33

Open
2 tasks
serapath opened this issue Jan 18, 2022 · 0 comments
Open
2 tasks

substrate encodings #33

serapath opened this issue Jan 18, 2022 · 0 comments

Comments

@serapath
Copy link
Member

@TODO

  • SUBSTRATE ENCODING
    hash_number - should be named: index
    hash - should be named: hash.data
    total_length - should be named: size
  • get rid of the field hashtype entirely and just have it internal to substrate, because it can be calculated/derived from other params
    // hash of the parent when used in calculation of the root hash doesn't contain hashtype
    // => because that's part of the hash payload in the first place
    // ==> hardcode hashtype to 2
    // ==> hashtype of the merkle root is always 2
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