stacks-core
stacks-core copied to clipboard
Enhance multi-sig ux
It's currently fairly difficult to sign a multi-sig transaction unless using a single instance of TransactionSigner. This means that the transaction can't easily be signed by multiple parties. This is the case for two reasons:
-
StacksTransaction::consensus_deserialize()will fail if the transaction is not fully signed. This is problematic if you want to partially sign a transaction, serialize it, and send it to someone else to sign. - The constructor for
StacksTransactionSignersets itssighashfield assuming the transaction hasn't already been signed by anyone.
Proposal:
- add a new
deserialize_incomplete()method toStacksTransactionfor deserializing partially constructed/signed transactions. - upgrade constructor for
StacksTransactionSignersuch that it reconstructs the sighash from the signatures that already exist.- I'm not sure if this is possible...
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed. Please reopen if needed.
This issue has been automatically closed. Please reopen if needed.