SessionKeySigner
Defined in: account-kit/smart-contracts/dist/types/src/msca/plugins/session-key/signer.d.ts:21
A simple session key signer that uses localStorage or sessionStorage to store a private key. If the key is not found, it will generate a new one and store it in the storage.
Implements
- SmartAccountSigner<- LocalAccountSigner<- PrivateKeyAccount>>
Constructors
Constructor
Defined in: account-kit/smart-contracts/dist/types/src/msca/plugins/session-key/signer.d.ts:38
Initializes a new instance of a session key signer with the provided configuration. This will set the signerType, storageKey, and storageType. It will also manage the session key, either fetching it from storage or generating a new one if it doesn’t exist.
Example
Parameters
Returns
SessionKeySigner