toip.tools

interface · Browser

Unlocked

An account whose key is in memory: what a tab needs to act for it.

@toip-tools/web-vaultView source
TypeScriptImport
import { type Unlocked } from "@toip-tools/web-vault";

Declaration

TypeScriptinterface
interface Unlocked {
  account: Account;
  seed: Uint8Array;
  /** Seals and opens this account's blobs. Null for an account that isn't protected yet. */
  key: CryptoKey | null;
}

Properties

accountrequired
Account
seedrequired
Uint8Array<ArrayBufferLike>
keyrequired
CryptoKey | null

Seals and opens this account's blobs. Null for an account that isn't protected yet.