eciesSeal
eciesSeal(
plaintext,recipientPublicKey):Promise<Uint8Array<ArrayBufferLike>>
Defined in: packages/core/src/ecies.ts:95
Encrypt plaintext to recipientPublicKey using ECIES (P-256 ECDH
- HKDF-SHA-256 + AES-256-GCM). Returns the self-describing sealed bytes documented at the top of this module.
Parameters
Section titled “Parameters”plaintext
Section titled “plaintext”Uint8Array
The bytes to seal.
recipientPublicKey
Section titled “recipientPublicKey”CryptoKey
The recipient’s P-256 ECDH public key
(CryptoKey, algorithm { name: 'ECDH', namedCurve: 'P-256' }).
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>