Skip to content

feat(utxo-core): implement buildToSignPsbt for BIP322 message signing #6611

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 1, 2025

Conversation

davidkaplanbitgo
Copy link
Contributor

@davidkaplanbitgo davidkaplanbitgo commented Aug 1, 2025

Add functionality to construct the toSign PSBT for BIP322 message verification with support for redeem scripts and witness scripts. Includes tests to verify correctness against BIP322 test vectors.

Supports v0 segwit and non-segwit addresses. Taproot to be added later.

Issue: BTC-2362

@davidkaplanbitgo davidkaplanbitgo requested a review from a team as a code owner August 1, 2025 16:25
Add functionality to construct the toSign PSBT for BIP322 message verification
with support for redeem scripts and witness scripts. Includes tests to verify
correctness against BIP322 test vectors.

Supports v0 segwit and non-segwit addresses. Taproot to be added later.

Issue: BTC-2360

Co-authored-by: llm-git <[email protected]>
Change buildToSignPsbt to directly accept a Transaction object instead of hex
string, and return a Psbt object instead of hex. Similarly update
buildToSpendTransaction to return a Transaction object.

Issue: BTC-2362

Co-authored-by: llm-git <[email protected]>
@davidkaplanbitgo davidkaplanbitgo dismissed OttoAllmendinger’s stale review August 1, 2025 19:01

requested changes applied

@davidkaplanbitgo davidkaplanbitgo merged commit 80839d5 into master Aug 1, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants