SignInputCommand class

Command to sign one input of a transaction with the wallet key at an explicit derivation path, against a caller-supplied subscript and amount.

The aggregate replies InputSignedResponse carrying the signature (DER plus sighash byte) and the signing key's public key; nothing is journaled. For WIF wallets the path is ignored (single key); watch-only wallets are refused.

Inheritance

Constructors

SignInputCommand({required String walletId, required String rawTransaction, required int inputIndex, required String subscriptHex, required BigInt satoshis, required int derivationIndex, bool isChange = false, int sighashType = 0x41, String? commandId, DateTime? timestamp, Map<String, dynamic>? metadata})

Properties

commandId → String
Unique identifier for this command Used for deduplication and tracing
no setterinherited
commandType → String
Command type identifier for logging and debugging
no setteroverride
correlationId → String
finalinherited
derivationIndex → int
Key path m/{isChange ? 1 : 0}/{derivationIndex}.
final
hashCode → int
The hash code for this object.
no setterinherited
inputIndex → int
Index of the input to sign.
final
isChange → bool
final
metadata → Map<String, dynamic>
finalinherited
payload → dynamic
Override payload to return the command itself for LocalMessage compatibility
no setterinherited
persistableMetadata → Map<String, dynamic>
metadata as it is persisted: transient ActorRef entries removed.
no setterinherited
rawTransaction → String
Transaction whose input is signed (hex). Unlocking scripts are ignored: the signature hash does not cover them.
final
replyTo → ActorRef?
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
satoshis → BigInt
Value of the output being spent, in satoshis.
final
sender → ActorRef?
finalinherited
sighashType → int
SIGHASH flags; SIGHASH_ALL | SIGHASH_FORKID by default.
final
subscriptHex → String
Script the signature commits to: the locking script of the output being spent (or the part of it after the last executed OP_CODESEPARATOR).
final
timestamp → DateTime
finalinherited
typeName → String
Stable identity of this command type in storage.
no setterinherited
walletId → String
finalinherited

Methods

getValidationErrors() → List<String>
Get validation errors Override in subclasses to provide specific error messages
inherited
isValid() → bool
Validate the command Override in subclasses for custom validation
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCbor() → List<int>
Serialize command to CBOR bytes
inherited
toMap() → Map<String, dynamic>
Convert command to a map for serialization.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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