SignOutcome class sealed
What a keystore signing call ended with.
ExternalSigner's callback returns one of these instead of throwing,
so a dismissed prompt, a slow keystore and a broken one stay three
different things all the way to the caller (CoseSignerCancelled,
CoseSignerTimedOut, CoseSignerFailed). Sealed, so a switch over it is
exhaustive.
- Implementers
Constructors
- SignOutcome.cancelled()
-
The person dismissed the keystore's prompt: CoseSignerCancelled.
constfactory
- SignOutcome.failed(String message)
-
The keystore failed (key invalidated, hardware error, ...):
CoseSignerFailed with
message. Keep it free of secrets: it is shown in logs.constfactory - SignOutcome.signature(Uint8List signature)
-
The keystore signed.
signatureis the ECDSA signature over the bytes the callback was given, DER encoded or rawr || s(64 bytes); either spelling is accepted and normalised in Rust.factory - SignOutcome.timedOut()
-
The keystore did not answer in time: CoseSignerTimedOut. A callback
that gives up on its own reports this; ExternalSigner.timeout produces
it for one that never answers.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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