Skip to content

feat(wasm-utxo)!: move inspect feature from CLI to library package#179

Merged
OttoAllmendinger merged 1 commit into
masterfrom
BTC-3049.wasm-utxo-inspect
Feb 26, 2026
Merged

feat(wasm-utxo)!: move inspect feature from CLI to library package#179
OttoAllmendinger merged 1 commit into
masterfrom
BTC-3049.wasm-utxo-inspect

Conversation

@OttoAllmendinger

Copy link
Copy Markdown
Contributor

Move PSBT and transaction parsing functionality from the CLI package
into the main wasm-utxo library behind the inspect feature flag.
This makes the parser reusable across CLI, WASM, and other consumers
while keeping optional dependencies isolated.

Key changes:

  • Add inspect feature with dependencies (num-bigint, serde, etc.)
  • Move parser implementation from CLI to src/inspect module
  • Add enum-based NetworkArg for improved CLI type safety
  • Add WASM bindings with runtime feature detection
  • Add TypeScript wrapper at @bitgo/wasm-utxo/inspect import path
  • Support both Bitcoin and Zcash transaction/PSBT formats
  • Update CLI to consume inspect feature from library
  • Add comprehensive documentation and examples

BREAKING CHANGE: Address/PSBT/TX commands now use --network
value_enum. Network arguments use short names (btc, ltc, etc.).

Issue: BTC-0

Co-authored-by: llm-git llm-git@ttll.de

Move PSBT and transaction parsing functionality from the CLI package
into the main wasm-utxo library behind the `inspect` feature flag.
This makes the parser reusable across CLI, WASM, and other consumers
while keeping optional dependencies isolated.

Key changes:
- Add `inspect` feature with dependencies (num-bigint, serde, etc.)
- Move parser implementation from CLI to src/inspect module
- Add enum-based NetworkArg for improved CLI type safety
- Add WASM bindings with runtime feature detection
- Add TypeScript wrapper at @bitgo/wasm-utxo/inspect import path
- Support both Bitcoin and Zcash transaction/PSBT formats
- Update CLI to consume inspect feature from library
- Add comprehensive documentation and examples

Breaking changes for CLI:
- Address/PSBT/TX commands now use --network value_enum
- Network arguments use short names (btc, ltc, etc.)

Issue: BTC-0

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger force-pushed the BTC-3049.wasm-utxo-inspect branch from 2736045 to 60b606f Compare February 26, 2026 11:38
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review February 26, 2026 11:50
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner February 26, 2026 11:50
@OttoAllmendinger OttoAllmendinger merged commit 0b7a2e0 into master Feb 26, 2026
7 checks passed
@OttoAllmendinger OttoAllmendinger deleted the BTC-3049.wasm-utxo-inspect branch February 26, 2026 19:03
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.

2 participants