Interface GeneratedSecretStorageKey

interface GeneratedSecretStorageKey {
    encodedPrivateKey?: string;
    keyInfo?: { name?: string; passphrase?: PassphraseInfo };
    privateKey: Uint8Array<ArrayBufferLike>;
}

Properties

encodedPrivateKey?: string

The generated key, encoded for display to the user per https://spec.matrix.org/v1.7/client-server-api/#key-representation.

keyInfo?: { name?: string; passphrase?: PassphraseInfo }

Type declaration

  • Optionalname?: string

    Optional human-readable name for the key, to be stored in account_data.

  • Optionalpassphrase?: PassphraseInfo

    If the key was derived from a passphrase, information (algorithm, salt, etc) on that derivation.

privateKey: Uint8Array<ArrayBufferLike>

The raw generated private key.