Skip to content

dgb: pin v36 combined-donation P2SH bytes (bucket-2 standardization guard) - #272

Merged
frstrtr merged 1 commit into
masterfrom
dgb/donation-p2sh-bytes-kat
Jun 20, 2026
Merged

dgb: pin v36 combined-donation P2SH bytes (bucket-2 standardization guard)#272
frstrtr merged 1 commit into
masterfrom
dgb/donation-p2sh-bytes-kat

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 20, 2026

Copy link
Copy Markdown
Owner

Phase B conformance guard-KAT (test-only, single-coin).

Gap closed: OracleDonationScript pins only the SIZE (23 bytes) of the v36 donation path. A drift in the 20-byte hash160 would slip past it silently. This locks the exact bytes get_donation_script(36) emits — OP_HASH160 PUSH20 <hash160> OP_EQUAL — against the canonical FLAG6 unified cross-coin v36 donation P2SH, plus a no-copy-divergence check vs the raw COMBINED_DONATION_SCRIPT constant.

3-bucket rule: the v36 donation target is BUCKET 2 (v36-native shared structure) -> byte-identical across ALL v36 coins. This hash is the same 8c627262… as src/impl/ltc/config_pool.hpp COMBINED_DONATION_SCRIPT. Guards against a coin-local fork of the donation target during the transition window.

Fence: src/impl/dgb/test/share_test.cpp only (+33). No shared-base / CMake / build.yml touch; dgb_share_test already allowlisted (#143 trap avoided). Suite 15/15 green; new test V36CombinedDonationScriptBytes passes.

HOLD-for-tap discipline.

…uard)

OracleDonationScript pins only the SIZE (23 bytes) of the v36 donation
path; a drift in the 20-byte hash160 would slip past it silently. Lock the
exact bytes get_donation_script(36) emits (OP_HASH160 PUSH20 <hash160>
OP_EQUAL) against the canonical FLAG6 unified cross-coin v36 donation P2SH.

3-bucket rule: the v36 donation target is BUCKET 2 (v36-native shared
structure) -> byte-identical across ALL v36 coins; this hash is the same
8c627262... as src/impl/ltc/config_pool.hpp COMBINED_DONATION_SCRIPT.
Guards against a coin-local fork of the donation target during the
transition window.

Test-only, single-coin (src/impl/dgb/test/share_test.cpp); dgb_share_test
already allowlisted. Suite 15/15 green.
@frstrtr
frstrtr merged commit 4311e27 into master Jun 20, 2026
29 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