Interface NamedVerifier<Asym>

Named public key or secret key verifier.

interface NamedVerifier<Asym extends boolean = any> {
    "[KeyKind]": If<Asym, "public", "secret", "public" | "secret">;
    name: Name;
    sigType: number;
    spki?: "public" extends If<Asym, "public", "secret", "public" | "secret">
        ? Uint8Array<ArrayBufferLike>
        : never;
    verify: (pkt: Verifier.Verifiable) => Promise<void>;
}

Type Parameters

  • Asym extends boolean = any

Hierarchy (View Summary)

Properties

"[KeyKind]": If<Asym, "public", "secret", "public" | "secret">
name: Name
sigType: number

SigInfo.sigType number for signatures accepted by this verifier.

spki?: "public" extends If<Asym, "public", "secret", "public" | "secret">
    ? Uint8Array<ArrayBufferLike>
    : never
verify: (pkt: Verifier.Verifiable) => Promise<void>

Verify a packet.

Type declaration