Skip to content

test(pox5): cover 2-of-3 lockup script in TS - #362

Merged
OttoAllmendinger merged 1 commit into
masterfrom
otto/WAL-1911-pox5-lockup-script-test
Aug 21, 2026
Merged

test(pox5): cover 2-of-3 lockup script in TS#362
OttoAllmendinger merged 1 commit into
masterfrom
otto/WAL-1911-pox5-lockup-script-test

Conversation

@OttoAllmendinger

@OttoAllmendinger OttoAllmendinger commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Validates BitGo's selected PoX-5 paired-BTC lockup variant: the post-branch staker-unlock-bytes is 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-backed Descriptor.toAsmString(). This removes the hand-written TypeScript script parser while retaining byte-identical checks for CLTV, the early-exit preimage binding, OP_EQUALVERIFY, and the OP_2 <keys> OP_3 OP_CHECKMULTISIG tail.

Adds a focused Rust unit test for the descriptor ASM renderer binding.

Reference contract: stacks-core 4.0.2.

Refs: WAL-1911

@linear-code

linear-code Bot commented Aug 18, 2026

Copy link
Copy Markdown

WAL-1911

@OttoAllmendinger
OttoAllmendinger force-pushed the otto/WAL-1911-pox5-lockup-script-test branch from b476976 to 52a3f61 Compare August 21, 2026 12:33
@OttoAllmendinger OttoAllmendinger changed the title test(pox5): add PoX-5 lockup script byte-identity test in TS test(pox5): cover 2-of-3 lockup script in TS Aug 21, 2026
@OttoAllmendinger
OttoAllmendinger force-pushed the otto/WAL-1911-pox5-lockup-script-test branch 5 times, most recently from 30b887d to 9bb4d53 Compare August 21, 2026 13:32
@OttoAllmendinger
OttoAllmendinger force-pushed the otto/WAL-1911-pox5-lockup-script-test branch from 9bb4d53 to 54bf357 Compare August 21, 2026 14:25
@OttoAllmendinger
OttoAllmendinger marked this pull request as ready for review August 21, 2026 14:41
@OttoAllmendinger
OttoAllmendinger requested a review from a team as a code owner August 21, 2026 14:41
@OttoAllmendinger
OttoAllmendinger merged commit 012dac0 into master Aug 21, 2026
13 checks passed
@OttoAllmendinger
OttoAllmendinger deleted the otto/WAL-1911-pox5-lockup-script-test branch August 21, 2026 14:48
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.

2 participants