feat(wasm-utxo): add version tracking to PSBTs#123
Merged
Conversation
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>
davidkaplanbitgo
approved these changes
Jan 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds PSBT version tracking capabilities to the wasm-utxo library by:
Creating a new WasmUtxoVersionInfo class to encode version and git hash
information in PSBTs
Adding a set_version_info method to BitGoPsbt that embeds version
information into proprietary fields
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