biturbo icon indicating copy to clipboard operation
biturbo copied to clipboard

Skip default stateRoot and codeHash in accounts

Open s1na opened this issue 5 years ago • 1 comments

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 avatar Sep 30 '19 14:09 s1na

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.

s1na avatar Oct 01 '19 13:10 s1na