T402 API Reference - v2.9.0
    Preparing search index...

    Type Alias JWSKeyResolver

    JWSKeyResolver: (header: JWSProtectedHeader) => Promise<Uint8Array> | Uint8Array

    Resolve the public key bytes for a given protected header. Typically looks up header.kid in a JWKS endpoint or a local registry.

    Expected return formats per algorithm:

    • ES256K: 33-byte compressed or 65-byte uncompressed secp256k1 key
    • EdDSA: 32-byte ed25519 public key

    Type Declaration