Skip to content

feat(wasm-utxo): expose generic PSBT KV accessors and package info at TS layer#241

Merged
OttoAllmendinger merged 1 commit intomasterfrom
BTC-2992.encode-wasm-utxo-version.2
Apr 1, 2026
Merged

feat(wasm-utxo): expose generic PSBT KV accessors and package info at TS layer#241
OttoAllmendinger merged 1 commit intomasterfrom
BTC-2992.encode-wasm-utxo-version.2

Conversation

@OttoAllmendinger
Copy link
Copy Markdown
Contributor

Add low-level PSBT key-value accessors (global, input, output) at Rust, WASM,
and TypeScript layers, enabling consumers to read/write arbitrary unknown or
proprietary fields. Also export BitGoKeySubtype enum values and package version
info at the TypeScript layer.

  • Add PsbtAccess trait methods: set/get_{global,input,output}_{unknown,proprietary}_kv
  • Wire up WasmBitGoPsbt methods: {set,get}_{kv,input_kv,output_kv}
  • Export BitGoKeySubtype + PsbtKvKey types from fixedScriptWallet/index.ts
  • Add WasmUtxoNamespace.get_wasm_utxo_version() + getWasmUtxoVersion() TS helper
  • Remove obsolete set_version_info() method and test
  • Replace WasmUtxoVersionInfo::to_proprietary_kv/from_proprietary_kv with build_key_value()

Issue: BTC-2992

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

@OttoAllmendinger OttoAllmendinger force-pushed the BTC-2992.encode-wasm-utxo-version.2 branch 2 times, most recently from 3f582fc to 52c7973 Compare April 1, 2026 12:14
… TS layer

Add low-level PSBT key-value accessors (global, input, output) at Rust, WASM,
and TypeScript layers, enabling consumers to read/write arbitrary unknown or
proprietary fields. Also export BitGoKeySubtype enum values and package version
info at the TypeScript layer.

- Add PsbtAccess trait methods: set/get_{global,input,output}_{unknown,proprietary}_kv
- Wire up WasmBitGoPsbt methods: {set,get}_{kv,input_kv,output_kv}
- Export BitGoKeySubtype + PsbtKvKey types from fixedScriptWallet/index.ts
- Add WasmUtxoNamespace.get_wasm_utxo_version() + getWasmUtxoVersion() TS helper
- Remove obsolete set_version_info() method and test
- Replace WasmUtxoVersionInfo::to_proprietary_kv/from_proprietary_kv with build_key_value()

Issue: BTC-2992

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger force-pushed the BTC-2992.encode-wasm-utxo-version.2 branch from 52c7973 to 080b874 Compare April 1, 2026 12:41
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review April 1, 2026 12:51
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner April 1, 2026 12:51
@OttoAllmendinger OttoAllmendinger merged commit e5b0770 into master Apr 1, 2026
14 checks passed
@OttoAllmendinger OttoAllmendinger deleted the BTC-2992.encode-wasm-utxo-version.2 branch April 1, 2026 16:06
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