Function decryptSafely

  • Decrypt a message that has been encrypted using encryptSafely.

    Parameters

    • options: {
          encryptedData: EthEncryptedData;
          privateKey: string;
      }

      The decryption options.

      • encryptedData: EthEncryptedData

        The encrypted data.

      • privateKey: string

        The private key to decrypt with.

    Returns string

    The decrypted message.