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

Kintsugi v2: implement RANDOM #3081

Closed
garyschulte opened this issue Nov 17, 2021 · 0 comments
Closed

Kintsugi v2: implement RANDOM #3081

garyschulte opened this issue Nov 17, 2021 · 0 comments
Assignees
Labels

Comments

@garyschulte
Copy link
Contributor

garyschulte commented Nov 17, 2021

Description

Besu added random to the blockHeader in amphora, but disabled it due to it being out of scope. For the kintsugi v2 spec, we fully implement EIP-4399:

  • use repurpose/replace mixHash with random post-TTD
    • in the block hash
    • in the RLP encoding (save on 32 bytes)
    • random should be persisted in the db
      • we should drop the unused blockheader fields from the db-serialization post-TTD, but this is an optimization
  • change to the EVM opcode 0x44(DIFFICULTY):
    • rename to RANDOM
    • return the value of random rather than difficulty(which will be fixed at 0)

Acceptance Criteria

  • implemented in merge-branch
  • passing merge-fuzz for v2
  • passing evm reference tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants