feat(utxo-staking): add PoX-5 recovery policy - #9659
Open
OttoAllmendinger wants to merge 2 commits into
Open
Conversation
Add canonical PoX-5 lockup descriptor construction, parsing, native input resolution, and principal-preimage validation to BitGoJS @bitgo/utxo-descriptors. - Return native wasm-utxo Descriptor values from the PoX-5 builder. - Expose Pox5DescriptorInfo and Pox5InputMatch for protocol fields, derived staker keys, concrete descriptors, and derivation indexes. - Delegate input matching to wasm-utxo shared descriptor resolution, including tolerance for foreign/root derivation metadata. - Read and validate the unique PSBT_IN_SHA256 principal preimage through the native PSBT key-value API. - Validate the principal preimage against the descriptor staker commitment. - Keep transaction construction, wallet authorization, locktime policy, and witness finalization in their existing layers. Refs: WAL-2025
Move native PoX-5 branch classification, locktime and sequence policy, preimage preparation, and witness finalization into @bitgo/utxo-staking. Refs: WAL-2022
Contributor
OttoAllmendinger
marked this pull request as ready for review
September 4, 2026 20:28
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.
Move native PoX-5 branch classification, locktime and sequence policy, preimage
preparation, and witness finalization into @bitgo/utxo-staking.