EcdaSignature class
Provide EcdaSignature sign and verify.
Constructors
- EcdaSignature(Uint8List r, Uint8List s, int v)
- EcdaSignature.fromRpcSig(String sig)
-
factory
- EcdaSignature.sign(String message, Uint8List privateKey)
-
factory
- EcdaSignature.signForEth(Uint8List message, Uint8List privateKey, {int chainId = -1})
-
factory
Properties
Methods
-
getSignature(
) → String -
getSignatureWithRecId(
) → String -
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
-
calculateEthSigRecovery(
int v, {int chainId = -1}) → int -
getRecid(
String pubHex, String message, ECSignature sig) → int -
getUnCompressedPublicKey(
Uint8List privateKey) → Uint8List -
isValidEthSignature(
BigInt r, BigInt s, int v, {bool homesteadOrLater = true, int chainId = -1}) → bool -
isValidEthSigRecovery(
int recoveryId) → bool -
privateAdd(
Uint8List d, Uint8List tweak) → Uint8List -
privateKeyToPublicKey(
Uint8List privateKey, {bool compress = true}) → Uint8List -
verify(
String message, Uint8List publicKey, String signature) → dynamic
Constants
- SIGN_LENGTH → const int