nooschain / crypto/encryption / decryptPayload
Function: decryptPayload()
decryptPayload(
args):Promise<Buffer<ArrayBufferLike>>
Defined in: crypto/encryption.ts:234
Decrypts a per-record encrypted payload by opening the matching DEK envelope.
Parameters
args
encryptedPayloadBase64
string
encryptionMetadata
keyEnvelopes
recipientPrivateKey
string
recipientPublicKey
string
Returns
Promise<Buffer<ArrayBufferLike>>