콘텐츠로 이동

resolveFieldDecryptKids

resolveFieldDecryptKids(config, context): Promise<readonly string[] | undefined>

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

The candidateKids to decrypt a field with: the envelope’s own kid first, then every kid from resolveDecryptKeys. Without resolveDecryptKeys it returns undefined, and the provider picks the key from its ciphertext.

FieldCryptoConfig

FieldCryptoKeyContext & object

Promise<readonly string[] | undefined>