Add PSBT creator, signer and finalizer roles for BIP-322 - #75
Open
aagbotemi wants to merge 17 commits into
Open
Conversation
aagbotemi
force-pushed
the
feat/psbt-multiparty-signing
branch
from
July 24, 2026 12:56
169b567 to
10744cf
Compare
This was referenced Jul 24, 2026
aagbotemi
force-pushed
the
feat/psbt-multiparty-signing
branch
from
July 27, 2026 09:22
10744cf to
4a82844
Compare
aagbotemi
force-pushed
the
feat/psbt-multiparty-signing
branch
from
July 27, 2026 10:03
4a82844 to
99e7843
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implement BIP-322's multi-party PSBT workflow, a creator builds an unsigned signing request, independent signers add partial signatures after detecting the request, and a finalizer assembles and encodes the result.
Rebased on #73
Changes
detect_bip322_psbtto check the detection properties.Bip322Psbtto carry the detected message and challenge for signers.create_bip322_psbtto build an unsigned PSBT with the message, UTXO, and script fields set.sign_bip322_psbt_inputto detect the request, adds a partial signature (or tap_key_sig for taproot) to the first input.finalize_bip322_psbtto assemble signatures per BIP174 and encodes as afulsignature.create_to_spendinto a script-basedcreate_to_spend_from_scriptso detection can reconstructto_spendfrom a scriptPubKey.Closes #74