Account Abstraction compatibility
Last updated
Last updated
Use an ERC1271-compatible library to validate signatures from your users in your smart contracts (Solidity) and front-end (JavaScript), instead of assuming a fixed signature length.
To validate signatures in smart contracts, we recommend using OpenZeppelin's SignatureChecker:
To validate signatures in the front-end, we recommend using Matter Labs' great library to abstract that logic away:
Don't ignore this warning when you compile your Solidity code!
tx.origin
As recommended by Matter Labs, it shouldn't be used as it blocks smart accounts and can lead to a full loss of funds for users. There are also plans to remove it from Ethereum in a future upgrade.