Vana SDK - v2.2.2
    Preparing search index...

    Function deserializeECIES

    • Deserializes hex string to ECIESEncrypted structure.

      Parameters

      • hex: string

        Hex string from serializeECIES() or storage.

      Returns ECIESEncrypted

      ECIESEncrypted structure ready for decryption.

      When hex string format is invalid. Verify the hex string is complete and uncorrupted.

      const encrypted = deserializeECIES(hexString);
      const decrypted = await provider.decrypt(privateKey, encrypted);