@request-seal/core API
    Preparing search index...

    Class PublicKey

    Public components only. Metadata restrictions survive every use and export.

    Index
    • Check compatibility and metadata permission for the selected algorithm.

      Parameters

      • algorithm: unknown

      Returns Result<true>

    • Internal equivalence ignores PSS-only type and JWK metadata.

      Returns Result<Uint8Array<ArrayBuffer>>

    • Export a defensive copy of the public JWK and its metadata restrictions.

      Returns Result<Readonly<Record<string, unknown>>>

    • Export public SPKI PEM when metadata restrictions permit a lossless export.

      Returns Result<string>

    • Export public SPKI bytes when metadata restrictions permit a lossless export.

      Returns Result<Uint8Array<ArrayBuffer>>

    • Compute the public key thumbprint defined by RFC 7638.

      Returns Promise<Result<string>>

    • Return a bounded public inspection view without retained cryptographic bytes.

      Returns Readonly<{ kind: string; pssOnly: boolean }>

    • Verify a signature with bounded input and preserved key metadata restrictions.

      Parameters

      • algorithm: unknown
      • signature: unknown
      • data: unknown
      • options: unknown = {}

      Returns Promise<Result<true>>

    • Import public JWK, PEM, or SPKI material without discarding metadata restrictions.

      Parameters

      • material: unknown
      • format: "jwk" | "spki" | "der" | "pem" = 'jwk'

      Returns Promise<Result<PublicKey>>