Documentation
    Preparing search index...
    • Encrypt message for given recipient's public key.

      Parameters

      • publicKeyTo: Uint8Array

        Recipient's public key (65 bytes)

      • msg: Uint8Array

        The message being encrypted

      Returns Promise<Uint8Array<ArrayBufferLike>>

      A promise that resolves with the ECIES structure serialized