Function: formatHpkeBuf()
formatHpkeBuf(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 keyencryptedBuf):string
Parameters
encryptedBuf
Uint8Array
The result of hpkeAuthEncrypt or hpkeEncrypt
Returns
string
- A JSON string with “encappedPublic” and “ciphertext”