Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
No open projects
Status: 🆕 Backlog
Development

No branches or pull requests

1 participant