Skip to content

Conversation

@OttoAllmendinger
Copy link
Contributor

This PR adds PSBT version tracking capabilities to the wasm-utxo library by:

  1. Creating a new WasmUtxoVersionInfo class to encode version and git hash
    information in PSBTs

  2. Adding a set_version_info method to BitGoPsbt that embeds version
    information into proprietary fields

  3. Adding a build script that extracts version from package.json and
    captures git commit hash during build time

These changes enable tracking which version of the WASM library created
or modified a PSBT, supporting debugging and compatibility verification.

BTC-2992

OttoAllmendinger and others added 3 commits January 30, 2026 12:16
Create a new WasmUtxoVersionInfo class to encode version and git hash
information in PSBTs. This allows tracking which version of the WASM
library created or modified a PSBT, supporting debugging and compatibility
verification.

Issue: BTC-2992

Co-authored-by: llm-git <llm-git@ttll.de>
Add set_version_info method to BitGoPsbt that embeds the wasm-utxo
version and git hash into the PSBT's proprietary fields. This allows
easy identification of which library version processed the PSBT.

Issue: BTC-2992

Co-authored-by: llm-git <llm-git@ttll.de>
Add a build script that extracts the version from package.json and
captures the git commit hash during build. These values are made available
as environment variables in the Rust code, providing better traceability
for deployments.

Also update GitHub workflows to use fetch-depth: 0 to ensure git history
is available for the build script.

Issue: BTC-2992

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review January 30, 2026 11:33
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner January 30, 2026 11:33
@OttoAllmendinger OttoAllmendinger merged commit 3d88fb8 into master Jan 30, 2026
6 checks passed
@OttoAllmendinger OttoAllmendinger deleted the BTC-2992.encode-wasm-utxo-version branch January 30, 2026 15:38
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