Deserializes hex string to ECIESEncrypted structure.
Hex string from serializeECIES() or storage.
serializeECIES()
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); Copy
const encrypted = deserializeECIES(hexString);const decrypted = await provider.decrypt(privateKey, encrypted);
Deserializes hex string to ECIESEncrypted structure.