Recovery
MOSS wallets are EIP-7702 smart accounts on chain. Each smart account maintains a list of keys and permissions on chain and validates signatures for each transaction.
Creating a Recovery Phrase#
Creating a recovery phrase involves registering a new EOA wallet key as an admin on the smart account.
The settings section of the wallet has the option to Get a recovery phrase which walks the user through creating a
recovery phrase. As this process registers a new key on chain, it requires gas.
The settings section can be shown using the open method of the SDK or directing
users to the dashboard directly at https://account.megaeth.com/account.
Using a Recovery Phrase#
When connecting a wallet, the user is given the option to recover their account. This involves copying/typing in a recovery phrase in the UI.
Once the phrase has been validated as having access to the account, the user can create a new passkey on their device which they can use to access their account and sign transactions going forward.
Multiple Devices#
Most password managers work cross device (e.g. Google, 1Password, Apple). However, if a user cannot access their passkey from a different device (e.g. created on a Mac and connecting on an Android), a recovery phrase is an option to create a new passkey on that device.