Function: formatHpkeBuf()

formatHpkeBuf(encryptedBuf): string
Defined in: crypto.ts:202 Format HPKE Buffer Function Returns a JSON string of an encrypted bundle, separating out the cipher text and the sender public key

Parameters

encryptedBuf

Uint8Array The result of hpkeAuthEncrypt or hpkeEncrypt

Returns

string
  • A JSON string with “encappedPublic” and “ciphertext”