recipient function
Extracts the recipient's fingerprint from a COSE_Encrypt0 message without decrypting it.
This allows looking up the appropriate decryption key before attempting full decryption.
ciphertext: The serialized COSE_Encrypt0 structure
Returns the recipient's fingerprint from the protected header's kid field.
Throws if the envelope is malformed.
Implementation
xhpke.Fingerprint recipient({required Uint8List ciphertext}) =>
xhpke.FingerprintInternal.wrap(ffi.coseRecipient(ciphertext: ciphertext));