chainbound / bolt

Bolt: permissionless proposer commitments on Ethereum
https://docs.boltprotocol.xyz
MIT License
72 stars 15 forks source link

Successful execution preconfs and use cases using `receipts_root` #34

Open thedevbirb opened 6 months ago

thedevbirb commented 6 months ago

For inclusion preconfirmations we're leveraging the transactions_root field of the execution block header along with Merkle proofs. In order to prove successful execution of a transaction (or a bundle) we could do the same but with the receipts_root of the receipt MPT. The flow will look as follows:

The receipt also contains all the logs emitted by the transaction. We should explore what use cases this unlocks!

merklefruit commented 6 months ago

Tentative tasklist to get this done in our devnet:

Note that this would still be a naive implementation, because the block building algorithm would need to be modified to include this type of transaction (avoiding for it to revert if possible).