MessageSignature class

Encapsulates a signature for messages that are encoded to base-64. The base-64 representation can be obtained via toString().

Constructors

MessageSignature.fromBase64(String str)
MessageSignature.sign({required ECPrivateKey key, required String message, required String prefix})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signature ECDSARecoverableSignature
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recover(String message, String prefix) ECPublicKey?
toString() String
A string representation of this object.
override
verifyAddress({required Address address, required String message, required String prefix}) bool
verifyPublicKey({required ECPublicKey pubkey, required String message, required String prefix}) bool

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

magicHash(String message, String prefix) → dynamic