ETHSignature class

Represents an Ethereum signature, consisting of the 'r', 's', and 'v' components.

An Ethereum signature is often used to authenticate transactions or messages in the Ethereum blockchain. This class provides methods for creating and manipulating Ethereum signatures, including conversion to and from bytes and hex.

Constructors

ETHSignature(BigInt r, BigInt s, int v)
Creates an Ethereum signature from the 'r', 's', and 'v' components.
ETHSignature.fromBytes(List<int> bytes)
Creates an Ethereum signature from a byte representation.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
r BigInt
final
rBytes List<int>
Gets the byte representation of the 'r' component of an Ethereum signature.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
s BigInt
final
sBytes List<int>
Gets the byte representation of the 's' component of an Ethereum signature.
no setter
v int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes([bool eip155 = true]) List<int>
Gets the byte representation of the 'r', 's', and 'v' components.
toHex([bool eip155 = true]) String
Gets the hexadecimal representation of the 'r', 's', and 'v' components.
toString() String
A string representation of this object.
inherited

Operators

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