• 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>

    A promise that resolves with the ECIES structure serialized

Generated using TypeDoc