signature library
Constants
- SIGNATURE_MESSAGE_PREFIX → const String
-
'\u0019Ethereum Signed Message:\n'
Functions
-
isValidSignature(
String hexSignature, String strMessage, String hexPublicKey, int chainId) → bool - Check whether the given signature is valid and belongs to the given message and public key
-
recoverExpandedSignerPubKey(
String hexSignature, String strMessage, int chainId) → String - Recover the expanded public key that signed the given message into the given signature
-
recoverSignerPubKey(
String hexSignature, String strMessage, int chainId) → String - Recover the compressed public key that signed the given message into the given signature
-
signBytes(
Uint8List message, String hexPrivateKey, int chainId) → String - Sign the given message using the private key and return a hex signature
-
signString(
String message, String hexPrivateKey, int chainId) → String - Sign the given message using the private key and return a hex signature