Onchain Flashtestation Verification

Open
#48 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
solidity
Domain
blockchain

Research direction

Start by finding and reading the design document written by @Ruteri, then compare its proposed transaction layouts with the current flashtestation flow. Decide on a design that supports both smart-contract verification and the end-of-block transaction hash commitment; done means the selected design is implemented and both verification requirements work.

Written by the indexing model from the issue text.

Description

v2

Currently there is no way for a smart contract to verify that the current block is built by a fair-ordering block builder. This is because the flashtestation transaction is placed bottom of block (i.e. the last transaction in the block) so that it can commit to a hash of all the block's transactions (minus itself) in the event it emits for offchain verifiers.

But, there are alternative designs for the flashtestation transaction that break it up into multiple transactions, one at top of block so smart contracts can verify, and then one at the end that commits to a hash of the block's transactions (minus itself).

@Ruteri had written up a doc discussing different options for how to do this, so we should consult that, decide on a design, and implement it

Dominant language
Solidity
Stars
4
Forks
4
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flashbots/flashtestations

All issues in flashbots/flashtestations

Similar issues

More Blockchain issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.