Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface NamedVerifier<Asym>

Named public key or secret key verifier.

Type Parameters

  • Asym extends boolean = any

Hierarchy

Index

Properties

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

Methods

  • verify(pkt: Verifiable): Promise<void>
  • Verify a packet.

    Parameters

    • pkt: Verifiable

    Returns Promise<void>

    a Promise is resolved upon good signature/policy or rejected upon bad signature/policy.

Generated using TypeDoc