bch(g2-c3): donation P2PK<->P2SH byte-correctness KAT - #876
Merged
Conversation
…->v36 flip Pins the donation script SSOT (core::donation::get_donation_script) byte-for-byte on both legs: v<36 = 67-byte BCH current-mainnet forrestv P2PK (guarded against a silent LTC/DASH-copied vector via the pubkey-prefix identity check), v>=36 = 23-byte combined 1-of-2 P2SH. Boundary pinned EXACTLY at version 36 (no off-by-one byte-offset-104 GENTX divergence). Guards the only G2-ratchet failure mode that is silent and reward-losing. Header-only, rig-free, gate-logic untouched. Wired into BCH_ABLA_TESTS and both build.yml COIN_BCH target lists; local ctest #266 PASS.
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.
G2-ratchet C3 (C3-FIRST per integrator GO 07-26). Guards the only G2-ratchet failure mode that is silent AND reward-losing: a wrong donation script across the P2PK<->P2SH flip pays the wrong destination with no gate error.
What it pins (byte-KAT over core::donation SSOT, independent hard-coded legs):
Discipline: KAT-only, no gate-logic change, header-only over <core/donation.hpp>. bitcoin_family/ and src/core/*.hpp untouched. Wired into BCH_ABLA_TESTS + both build.yml COIN_BCH target lists. Local ctest #266 PASS. GPG-signed 285EFE76. No self-merge — integrator merges on push approval.