Skip to content

refactor(psbt): extract witness/script-type helpers (no behavior change)#2323

Open
jasonandjay wants to merge 2 commits intobitcoinjs:masterfrom
jasonandjay:refactor/psbt-pr1-internal-helpers
Open

refactor(psbt): extract witness/script-type helpers (no behavior change)#2323
jasonandjay wants to merge 2 commits intobitcoinjs:masterfrom
jasonandjay:refactor/psbt-pr1-internal-helpers

Conversation

@jasonandjay
Copy link
Copy Markdown
Member

Part of #1993

This PR is a mechanical extraction step with no intended runtime/API behavior changes.

What changed

  • Extracted witness parsing helper into ts_src/psbt/internal/witness.ts
  • Extracted script-classification/meaningful-script helpers into ts_src/psbt/internal/scriptType.ts
  • Updated ts_src/psbt.ts to import these helpers
  • Regenerated CJS/ESM outputs

Notes

  • Public API unchanged
  • This is PR1 in a staged PSBT refactor sequence

@jasonandjay jasonandjay force-pushed the refactor/psbt-pr1-internal-helpers branch from 5a9affc to 17b495f Compare March 15, 2026 17:08
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.

1 participant