EIP712Base class abstract
Abstract base class for encoding data according to the Ethereum Improvement Proposal (EIP) 712 specification.
- Implementers
Constructors
-
EIP712Base.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → EIP712Version
-
Represents the version of the EIP-712 specification used by the concrete implementation.
final
Methods
-
encode(
{bool hash = true}) → List< int> -
Encodes the data into a list of integers according to EIP-712.
hashing encoded type bytes using
QuickCrypto.keccack256Hash
-
encodeHex(
{bool hash = true}) → String -
Encodes the data into a hex according to EIP-712.
hashing encoded type bytes using
QuickCrypto.keccack256Hash
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited