generateNewKey

Generates a new private key and stores it in the storage.

Import

1import { SessionKeySigner } from "@account-kit/smart-contracts";

Usage

1import { SessionKeySigner } from "@account-kit/smart-contracts";
2
3const signer = new SessionKeySigner();
4const newSessionKey = signer.generateNewKey();

Returns

Address The public address of the new key.