Skip to content

feat(utxo-staking): add PoX-5 recovery policy - #9659

Open
OttoAllmendinger wants to merge 2 commits into
otto/WAL-2025-bump-bitgo-wasm-utxofrom
otto/WAL-2022-pox5-recovery-policy
Open

feat(utxo-staking): add PoX-5 recovery policy#9659
OttoAllmendinger wants to merge 2 commits into
otto/WAL-2025-bump-bitgo-wasm-utxofrom
otto/WAL-2022-pox5-recovery-policy

Conversation

@OttoAllmendinger

@OttoAllmendinger OttoAllmendinger commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Move native PoX-5 branch classification, locktime and sequence policy, preimage
preparation, and witness finalization into @bitgo/utxo-staking.

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
@linear-code

linear-code Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

WAL-2022

@OttoAllmendinger
OttoAllmendinger marked this pull request as ready for review September 4, 2026 20:28
@OttoAllmendinger
OttoAllmendinger requested review from a team as code owners September 4, 2026 20:28
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.

1 participant