Skip to content

refactor(abstract-utxo): inline toWasmBIP32 in signPsbtWasm#8861

Merged
OttoAllmendinger merged 1 commit into
masterfrom
otto/sign-psbt-wasm-inline-bip32
May 26, 2026
Merged

refactor(abstract-utxo): inline toWasmBIP32 in signPsbtWasm#8861
OttoAllmendinger merged 1 commit into
masterfrom
otto/sign-psbt-wasm-inline-bip32

Conversation

@OttoAllmendinger
Copy link
Copy Markdown
Contributor

Summary

Removes `signPsbtWasm.ts`'s dependency on the `toWasmBIP32` bridge in `wasmUtil.ts` by inlining a local helper that accepts either a wasm `BIP32` or a `bip32.BIP32Interface` (also from wasm-utxo) and returns a wasm `BIP32`. No utxolib types involved.

PR group context

Part of an 8-PR fan-out removing `@bitgo/utxo-lib` from abstract-utxo runtime. Independent — file-disjoint from the other PRs in this group. Can merge in any order.

Test plan

  • `yarn tsc --noEmit` clean in `modules/abstract-utxo`
  • `yarn lint` clean in `modules/abstract-utxo`

🤖 Generated with Claude Code

The signer keychain is already typed as bip32.BIP32Interface | BIP32
(both from wasm-utxo). Convert directly via BIP32.fromBase58 instead of
routing through the wasmUtil bridge.

Refs: T1-3279
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner May 26, 2026 09:13
@OttoAllmendinger OttoAllmendinger merged commit c25dd3e into master May 26, 2026
22 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.

2 participants