Signature class
Constructors
- Signature(BigInt r, BigInt s, int v)
-
const
- Signature.createSignature(Uint8List payload, Uint8List privateKey, {TransactionType txType = TransactionType.Legacy, int? chainId, bool hashPayload = true})
-
factory
- Signature.fromBytes(Uint8List bytes)
-
factory
- Signature.fromHex(String hex)
-
factory
- Signature.fromRSV(BigInt r, BigInt s, int v)
-
factory
Properties
- bytes → Uint8List
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hex → String
-
no setter
- r → BigInt
-
final
- rBytes → Uint8List
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- s → BigInt
-
final
- sBytes → Uint8List
-
no setter
- v → int
-
final
- yParity → int
-
no setter
Methods
-
isValidETHSignature(
Uint8List payload, Uint8List publicKey) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
signPersonalMessageToUint8List(
Uint8List payload, Uint8List privateKey) → Uint8List