Skip to content

encodeDigestKey

encodeDigestKey(bytes, format): string

Defined in: src/codecs/digest/key.ts:71

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

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

Uint8Array

DigestKeyFormat

string

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

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