Signature class

Constructors

Signature()

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

isValidSignature(String hexSignature, String strPayload, String hexPublicKey, {int chainId}) bool
Check whether the given signature is valid and belongs to the given message and public key
isValidSignatureAsync(String hexSignature, String strPayload, String hexPublicKey, {int chainId}) Future<bool>
Check whether the given signature is valid and belongs to the given message and public key
recoverSignerPubKey(String hexSignature, String strPayload, {int chainId, bool uncompressed = false}) String
Recover the public key that signed the given message into the given signature
recoverSignerPubKeyAsync(String hexSignature, String strPayload, {int chainId, bool uncompressed = false}) Future<String>
Recover the public key that signed the given message into the given signature
signBytes(Uint8List payload, String hexPrivateKey, {int chainId}) String
Sign the given payload using the private key and return a hex signature
signBytesAsync(Uint8List payload, String hexPrivateKey, {int chainId}) Future<String>
Sign the given payload using the private key and return a hex signature
signString(String payload, String hexPrivateKey, {int chainId}) String
Sign the given payload using the private key and return a hex signature
signStringAsync(String payload, String hexPrivateKey, {int chainId}) Future<String>
Sign the given payload using the private key and return a hex signature