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

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

@enitrat

Description

@enitrat

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions