Clear the stored mnemonic from the store.
Create a new session key from a fresh mnemonic. Persists the mnemonic to the store.
Derive a session key from an explicit mnemonic (no storage interaction).
Load an existing session key from the store. Returns null if no mnemonic is stored.
Load existing or create a new session key.
Manages an sr25519 account derived from a BIP39 mnemonic.
Param: options.store
KvStore instance (from
@polkadot-apps/storage). Create withcreateKvStore({ prefix: "session-key" })for namespaced persistence.Param: options.name
Identifies this session key. Defaults to
"default". Use different names to manage multiple independent session keys.Example