zkevm-specs
zkevm-specs copied to clipboard
Difficulty size limit
We're implement the circuit for DIFFICULTY atm, and have seen that in https://github.com/scroll-tech/zkevm-specs/blob/master/specs/opcode/41COINBASE-45GASLIMIT_48BASEFEE.md, the DIFFICULTY is 32 bytes.
In https://github.com/ethereum/go-ethereum/blob/d4d288e3f1cebb183fce9137829a76ddf7c6d12a/core/types/block.go#L132 the limit is 10 bytes.
What should we go with?
I would be in favour of aligning with go-ethereum
and limiting DIFFICULTY
to 10 bytes.
So the rationale we follow is:
- Yellow paper
- https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1985.md
- Geth implementation.
In that case, nothing is clear from the first two. So I would go for Geth's impl as reference for the RLC size.