test(pox5): cover 2-of-3 lockup script in TS - #362
Merged
Conversation
OttoAllmendinger
force-pushed
the
otto/WAL-1911-pox5-lockup-script-test
branch
from
August 21, 2026 12:33
b476976 to
52a3f61
Compare
OttoAllmendinger
force-pushed
the
otto/WAL-1911-pox5-lockup-script-test
branch
5 times, most recently
from
August 21, 2026 13:32
30b887d to
9bb4d53
Compare
OttoAllmendinger
force-pushed
the
otto/WAL-1911-pox5-lockup-script-test
branch
from
August 21, 2026 14:25
9bb4d53 to
54bf357
Compare
OttoAllmendinger
marked this pull request as ready for review
August 21, 2026 14:41
veetragjain
approved these changes
Aug 21, 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.
Validates BitGo's selected PoX-5 paired-BTC lockup variant: the post-branch
staker-unlock-bytesis standard 2-of-3 multisig (multi(2, user, backup, bitgo)), while the early-exit branch remains the bond-provided single-cosigner fragment.The test constructs the
wsh(...)descriptor with the wasm-utxo AST utilities, then checks the complete canonical assembly returned by Rust-backedDescriptor.toAsmString(). This removes the hand-written TypeScript script parser while retaining byte-identical checks for CLTV, the early-exit preimage binding,OP_EQUALVERIFY, and theOP_2 <keys> OP_3 OP_CHECKMULTISIGtail.Adds a focused Rust unit test for the descriptor ASM renderer binding.
Reference contract: stacks-core 4.0.2.
Refs: WAL-1911