Skip to content

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.

Uint8Array

The bytes to seal.

CryptoKey

The recipient’s P-256 ECDH public key (CryptoKey, algorithm { name: 'ECDH', namedCurve: 'P-256' }).

Promise<Uint8Array<ArrayBufferLike>>