EspressoSystems / espresso-sequencer

86 stars 56 forks source link

Implement BidTx #1633

Open tbro opened 2 weeks ago

tbro commented 2 weeks ago

This PR:

This PR itroduces FullNetworkTx by way of a single enum variant, BidTx. To meet upcoming goals we only need BidTx but having it nested in long term structure may be helpful. There is a tiny bit of test coverage to ensure a moderate degree of santity.

This is a DRAFT and exists for collaboration and to gather feedback.

Key places to review:

Most of the juicy bits are in auction.rs. Header in header.rs has been given some useful methods (mocks for now) and validation logic in state.rs has been updated to execute the transaction. None of the logic is complete or refined, but it more or less covers the breadth of requirements for the first iteration of BidTx.

How to test this PR:

Tests are currently testing, you can run cargo test if you like.

Things tested

There is currently a test for verifying signature of a mock BidTx.