Documentation Index
Fetch the complete documentation index at: https://turnkey-0e7c1f5b-bc-add-sdk-typedoc.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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”