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

feat: add a whitelist mechanism for pre-eip155 transactions #924

Open
enitrat opened this issue Sep 11, 2024 · 0 comments
Open

feat: add a whitelist mechanism for pre-eip155 transactions #924

enitrat opened this issue Sep 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@enitrat
Copy link
Contributor

enitrat commented Sep 11, 2024

EIP-155

  • Inside the AccountContract, add a Account_authorized_message_hashes Map<u256, bool>`
  • Inside execute_from_outside, after the signature is validated, after the transaction is decoded, if transaction.chain_id is none, then this is a pre-eip155 transaction
  • In this case, verify that this transaction hash was registered in the Account_authorized_message_hashes storage variable of this account.
@enitrat enitrat added the enhancement New feature or request label Sep 11, 2024
@github-project-automation github-project-automation bot moved this to 🆕 Backlog in Kakarot on Starknet Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: 🆕 Backlog
Development

No branches or pull requests

1 participant