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

Add fee to transaction #66

Open
5 tasks
leonardoalt opened this issue Feb 11, 2023 · 0 comments
Open
5 tasks

Add fee to transaction #66

leonardoalt opened this issue Feb 11, 2023 · 0 comments

Comments

@leonardoalt
Copy link
Owner

By signing the tx, the user agrees that the fee will be subtracted from their account and given to the block.coinbase at the end of the transaction.

Tasks:

  • Add fee to the Tx types in the subcrates
  • Create an L2 block type that has a list of transactions and a coinbase
  • Modify L1 verifier contract to take in the new block instead of txs
  • Modify sequencer to send block (with its own public key as the coinbase) instead of txs
  • Add tx.fee and block.coinbase to the circuit which also adds the fee transfer to the state update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant