SignatureUtil class

Constructors

SignatureUtil()

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

concatSig(Uint8List r, Uint8List s, Uint8List v) String
ecRecover({required String signature, required Uint8List message, int? chainId, required dynamic isPersonalSign}) String
fromRpcSig(String sig) ECDSASignature
isValidSignature(BigInt r, BigInt s, int v, {bool homesteadOrLater = true, int? chainId}) bool
privateKeyToPublicKey(Uint8List privateKey) Uint8List
Generates a public key for the given private key using the ecdsa curve which Ethereum uses.
publicKeyToAddress(Uint8List publicKey) Uint8List
recoverPublicKeyFromSignature(ECDSASignature sig, Uint8List message, {int? chainId}) Uint8List?
sign({required Uint8List message, String? privateKey, Uint8List? privateKeyInBytes}) String
signPersonalMessage({required Uint8List message, String? privateKey, Uint8List? privateKeyInBytes}) String
signToSignature(Uint8List message, Uint8List privateKey) ECDSASignature