Skip to content

Function: sealBytes() ​

sealBytes(publicKey, data, options?): Promise<Uint8Array<ArrayBufferLike>>

Defined in: stream.ts:279

Convenience: encrypts a whole buffer. Returns the complete encrypted stream as one array.

Parameters ​

publicKey ​

PublicKey

data ​

Uint8Array

options? ​

SealStreamOptions = {}

Returns ​

Promise<Uint8Array<ArrayBufferLike>>

Apache-2.0.