WalletConnectCipher class

WalletConnect protocol implementation of the encryption/decryption algorithms

Implemented types

Constructors

WalletConnectCipher()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decrypt({required EncryptedPayload payload, required Uint8List key}) Future<Uint8List>
Decrypt the payload with the given key. This also verifies the hmac.
override
encrypt({required Uint8List data, required Uint8List key, Uint8List? iv}) Future<EncryptedPayload>
Encrypt the data with the given key, and an optional nonce.
override
generateKey({int length = 32, Random? random}) Future<Uint8List>
Generate a new random, cryptographically secure key.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
verifyHmac({required EncryptedPayload payload, required Uint8List key}) Future<bool>
Verify the hmac and returns true if valid.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited