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

Skip default stateRoot and codeHash in accounts #6

Open
s1na opened this issue Sep 30, 2019 · 1 comment
Open

Skip default stateRoot and codeHash in accounts #6

s1na opened this issue Sep 30, 2019 · 1 comment

Comments

@s1na
Copy link
Collaborator

s1na commented Sep 30, 2019

In turbo-token we'll only need nonce and balance. To keep "compatibility" with eth1 (e.g. same state root hashes), we nevertheless consider the account to have a stateRoot and a codeHash. But since they're usually default values, they can be set to 0 or come with a flag, to reduce block data.

@s1na
Copy link
Collaborator Author

s1na commented Oct 1, 2019

This would reduce data size, but come at the cost of speed. The EE would have to add the default values for stateRoot and codeHash to the account and re-encode to be able to verify the proof.

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