privacy-scaling-explorations / zkevm-circuits

https://privacy-scaling-explorations.github.io/zkevm-circuits/
Other
818 stars 854 forks source link

BLOBBASEFEE opcode #1793

Open hero78119 opened 6 months ago

hero78119 commented 6 months ago

https://eips.ethereum.org/EIPS/eip-7516

Follow current BaseFee approach https://github.com/privacy-scaling-explorations/zkevm-circuits/blob/443da4bd3b43bc07d7830f3b6c84a29c1267ccff/zkevm-circuits/src/table/block_table.rs#L19-L20

We need to define new field BlobBaseFee in blocktable, with new opcode BLOBBASEFEE to lookup blocktable and retrieve the value

Implementation reference for lookup in block table https://github.com/privacy-scaling-explorations/zkevm-circuits/blob/main/zkevm-circuits/src/evm_circuit/execution/block_ctx.rs#L29