Signature class
A class that takes data of different types and signs it using a Keystore object.\
It can sign bytes and hexadecimal data.
The signature is computed in different formats:
- signedBytes: signed bytes
- edsig: base 58 encoded using 'edsig' prefix
- hexIncludingPayload: hexadecimal signature prefixed by data to sign
- Annotations
-
- @immutable
Constructors
- Signature.fromBytes({required Uint8List bytes, required Keystore keystore, Watermarks? watermark})
-
A factory that computes the signature of
bytes
(prefixed bywatermark
) usingkeystore
.factory - Signature.fromHex({required String data, required Keystore keystore, Watermarks? watermark})
-
A factory that computes the signature of hexadecimal
data
(prefixed bywatermark
) usingkeystore
.\factory
Properties
- bytes → Uint8List
-
final
- edsig → String
-
Base 58 encoding of this using 'edsig' prefix.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hexIncludingPayload → String
-
Hexadecimal signature of this prefixed with hexadecimal payload to sign.
no setter
- keystore → Keystore
-
final
-
props
→ List<
Object> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signedBytes → ByteList
-
Signed bytes of this.
no setter
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - watermark → Watermarks?
-
final
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