Interface NamedDecrypter<Asym>

Named private key or secret key decrypter.

interface NamedDecrypter<Asym> {
    [KeyKind]: If<Asym, "private", "secret", "private" | "secret">;
    llDecrypt: LLDecrypt;
    name: Name;
    spki?: "public" extends If<Asym, "private", "secret", "private" | "secret">
        ? Uint8Array
        : never;
}

Type Parameters

  • Asym extends boolean = any

Hierarchy (view full)

Properties

[KeyKind]: If<Asym, "private", "secret", "private" | "secret">
llDecrypt: LLDecrypt
name: Name
spki?: "public" extends If<Asym, "private", "secret", "private" | "secret">
    ? Uint8Array
    : never