Remote Signer
SDK and Contract Interactions - DeeDive
Remote Signer Module
This module provides functionality to sign user operations using a remote signer. It includes the following key components:
Types
RemoteSignerParams: Defines the parameters required to create a remote signer.
Functions
signUserOp: Signs a user operation using the session key.
toRemoteSigner: Converts a local account to an extended local account with remote signing capabilities.
signUserOperation: Signs a user operation using the remote signer.
Pre-requisites for using a sessionKey in remote-signing
- EtherspotWallet account should have SessionKeyValidator module installed.
- SessionKeyValidator varies with the kind of operation performed, i.e there can be multiple kinds of SessionKeyValidator and the nonce to be used as part of userOp is generated from the address of
SessionKeyValidator
ERC20SessionKeyValidator is used to perform the erc20 based operations from etherspotWalletAddress
All validations on the UserOp (ERC20 operations) are done by ERC20SessionKeyValidator
module
Nonce used during the UserOp Estimation is to be from:
This nonce is later used to identify the validatorModule used during the validationPhase in EntryPoint contract.