Skip to content

DASH S8 stratum mining.submit reassembly KAT — close subscribe→notify→submit triangle#634

Merged
frstrtr merged 2 commits into
masterfrom
dash/s8-stratum-submit-reassembly
Jul 4, 2026
Merged

DASH S8 stratum mining.submit reassembly KAT — close subscribe→notify→submit triangle#634
frstrtr merged 2 commits into
masterfrom
dash/s8-stratum-submit-reassembly

Conversation

@frstrtr

@frstrtr frstrtr commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Closes the third and final side of the stratum wire contract (subscribe→notify→submit), after #630 (get_work slot), #631 (notify merkle fold), #633 (subscribe coinb1/coinb2 split).

What it binds. Given a miner submit (extranonce2, ntime, nonce), the KAT reconstructs the EXACT 80-byte block header whose sha256d is the share hash, using the REAL landed producers dash::coinbase::split_coinb() and dash::coinbase::merkle_branches_raw() (the exact code mining.subscribe/mining.notify ship). The miner-side reassembly (coinb1||en2||coinb2), merkle fold (index 0), and header assembly are mirrored locally (the miner is cpuminer, not our code — same rationale as #631); handle_submitcompute_share_difficulty (stratum_server.cpp:877) walks the identical reconstruction.

Non-circular anchoring.

Fencing. test/ + build.yml allowlist only. Non-consensus, socket-free, node-free — pure synthetic CoinbaseLayout, no live node/RPC/P2P.

Local result: ctest -R DashStratumSubmitReassembly → 7/7 (tests #925–931), non-hollow from build/. Merge-gated on full green + tap; no self-merge.

Oracle: frstrtr/p2pool-dash @9a0a609 (work.py:474, dash/data.py block_header_type, dash/stratum.py rpc_submit).

frstrtr added 2 commits July 4, 2026 21:44
…submit triangle

Bind the REAL landed producers split_coinb() + merkle_branches_raw() to prove
a miner submit (extranonce2, ntime, nonce) reconstructs the EXACT 80-byte block
header whose sha256d is the share hash. Reassembled coinbase cross-checks the
Python sha256d anchors; extranonce2/ntime/nonce each shown to bind injectively
into the share. Fenced test/ + build.yml only, non-consensus, socket/node-free.
…t allowlist

The second (-fsanitize=address,undefined) --target allowlist in build.yml
omitted test_dash_stratum_submit_reassembly, so the ASan job never built
the binary while ctest still had the 7 DashStratumSubmitReassembly cases
registered from configure -> reported (Not Run) -> exit 8 -> RED. The
non-ASan Linux/macOS/Windows builds pass because their allowlist (line 105)
already includes it. Build-glue only; no source or sanitizer semantics change.
@frstrtr frstrtr force-pushed the dash/s8-stratum-submit-reassembly branch from 839036e to 9dddc71 Compare July 4, 2026 21:44
@frstrtr frstrtr merged commit b61b9eb into master Jul 4, 2026
22 checks passed
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