Skip to content

encodeSigningKey

encodeSigningKey(bytes, format): string

Defined in: src/codecs/signed/key.ts:72

Encode raw signing operator key material for storage in env vars or secret managers.

Supports "hex" (lowercase) and "base64url". Output round-trips through decodeSigningKey back to the original bytes.

Uint8Array

SigningKeyFormat

string

invalid_key_format if format is not "hex" or "base64url".

invalid_key_length if bytes.length is not 16, 24, or 32.