• Encrypt a message.

    Parameters

    • options: {
          data: unknown;
          publicKey: string;
          version: string;
      }

      The encryption options.

      • data: unknown

        The message data.

      • publicKey: string

        The public key of the message recipient.

      • version: string

        The type of encryption to use.

    Returns EthEncryptedData

    The encrypted data.