TypedDataUtil class

Constructors

TypedDataUtil()

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

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

encodeData(String primaryType, dynamic data, Map<String, List<TypedDataField>> types, String version) Uint8List
encodeType(String primaryType, Map<String, List<TypedDataField>> types) String
Encodes the type of an object by encoding a comma delimited list of its members
findTypeDependencies(String primaryType, Map<String, List<TypedDataField>> types, {Set<String>? results}) Set<String>
Finds all types within a type defintion object
hashMessage({required String jsonData, required TypedDataVersion version, int? chainId}) Uint8List
hashStruct(String primaryType, dynamic data, Map<String, List<TypedDataField>> types, String version) Uint8List
hashType(String primaryType, dynamic types) Uint8List
Hashes the type of an object
hashTypedData(TypedMessage typedData, String version) Uint8List
hashTypedDataV1(List<EIP712TypedData> typedData) Uint8List
hashTypedDataV3(TypedMessage typedData) Uint8List
hashTypedDataV4(TypedMessage typedData) Uint8List
recoverPublicKey(dynamic data, String sig, TypedDataVersion version, {int? chainId}) Uint8List?
typedSignatureHash(List<EIP712TypedData> typedData) Uint8List