Skip to content

extractEnvelopeKid

extractEnvelopeKid(ciphertext): string | undefined

Defined in: packages/core/src/crypto/key-selection.ts:19

Reads the kid of a v1 ciphertext envelope, exactly as written. Returns undefined for any other value, including a provider’s own JSON format.

unknown

string | undefined