Skip to content

nmc(card237): second node-verified auxpow wire KAT (mainnet 829949) - #228

Merged
frstrtr merged 1 commit into
masterfrom
nmc/card237-wire-vector-829949
Jun 19, 2026
Merged

nmc(card237): second node-verified auxpow wire KAT (mainnet 829949)#228
frstrtr merged 1 commit into
masterfrom
nmc/card237-wire-vector-829949

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Adds a second wire-vector KAT case to src/impl/nmc/test/auxpow_wire_test.cpp: MainnetBlock829949RoundTrip, the raw getblock 0 hex of Namecoin mainnet block 829949 (hash f876ce3f...e6b92b), pulled LIVE 2026-06-19 from the .140 pruned mainnet node (height 829950, IBD complete). Distinct BTC parent (versionHex 0x234c4000) from the existing 757000 case.

Why: the round-trip memcmp only proves the CAuxPow serializer is self-consistent against the supplied blob, so the KAT s strength rests on the vector being genuine external truth. 757000 is below this pruned node s horizon and cannot be re-verified; this case pins the serializer against an independently node-verified blob at a different height/parent.

Both cases PASS locally (EXIT=0). Fenced: src/impl/nmc/test/ only; rides the allowlisted nmc_auxpow_wire_test exe, no build.yml/CMake change. GPG-signed, no third-party attribution.

Add MainnetBlock829949RoundTrip alongside the existing 757000 case in
src/impl/nmc/test/auxpow_wire_test.cpp. The vector is the raw getblock 0
hex of Namecoin mainnet block 829949 (hash f876ce3f...e6b92b), pulled
LIVE 2026-06-19 from the .140 pruned mainnet node (height 829950,
initialblockdownload=false). It carries a distinct BTC parent
(versionHex 0x234c4000) from the 757000 case.

Rationale: the round-trip memcmp only proves the CAuxPow serializer is
self-consistent against the supplied blob, so the KAT s strength rests
entirely on the vector being genuine external truth. 757000 is below
this pruned node s horizon and cannot be re-verified; this second case
pins the serializer against an independently node-verified blob at a
different height/parent. Both cases pass (EXIT=0).

Fenced: src/impl/nmc/test/ only; rides the allowlisted nmc_auxpow_wire_test
exe, no build.yml or CMake change.
@frstrtr
frstrtr merged commit df9cfb0 into master Jun 19, 2026
18 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