WalletConnectV2UriValidator class
- Inheritance
-
- Object
- WalletConnectUriValidator
- WalletConnectV2UriValidator
Constructors
Properties
-
errors
→ Set<
WalletConnectUriValidationError> -
Validator contains a set of
WalletConnectUriValidationError
errors.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isValid → bool
-
Validator contains a boolean value indicating
if there are any validation errors after initialization.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → WalletConnectV2Uri
-
Validator contains an instance of provided WalletConnectUri.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
validate(
WalletConnectV2Uri uri) → Set< WalletConnectUriValidationError> -
Validates a WalletConnectV2Uri object.
It runs a sequence of validation checks on the WalletConnectV2Uri object.
It records all the errors and returns them as a Set of WalletConnectUriValidationError.
override
-
validateProtocol(
String protocol) → void -
Validate WalletConnectV2Uri protocol.
It should be equal to the generic 'wc' url scheme.
override
-
validateRelayData(
[String? data]) → void - Validate WalletConnectV2Uri relay data. It checks if the relay data is hex encoded if provided.
-
validateRelayProtocol(
String protocol) → void - Validate WalletConnectV2Uri relay protocol. It checks if the relay protocol is empty. There is no other validation for the relay protocol.
-
validateSymKey(
String key) → void - Validate WalletConnectV2Uri symmetric key. It checks if the symmetric key is hex encoded. and if it has a valid length.
-
validateTopic(
String topic) → void - Validate WalletConnectV2Uri topic. It checks if the topic is hex encoded but it does not checks its (32 bytes) size.
-
validateVersion(
WalletConnectVersion version) → void -
Validate WalletConnectV2Uri version.
It should be equal to WalletConnectVersion.v2.
override