Skip to content

Subtree consistency tests with start > 0 - #257

Merged
phbnf merged 5 commits into
transparency-dev:mainfrom
phbnf:nonzerotests
Jul 27, 2026
Merged

Subtree consistency tests with start > 0#257
phbnf merged 5 commits into
transparency-dev:mainfrom
phbnf:nonzerotests

Conversation

@phbnf

@phbnf phbnf commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Fixes #225.

This PR adds the last batch of tests for subtree consistency proofs. Hashes have been computed using the reference implementation.

This PR:

  • defines its own set of subtreeConsistencyProof instead of relying on old consistencyProofs
  • renames probes files with more accurate names

Additional hashes were generated using the reference implementation functions, with code generated by Gemini: https://go.dev/play/p/WsdAyprmqlM. It makes sense for probes. Generating for reference_test.go with reference_test.go defeats a bit the purpose but... who knows how the existing tests were generated in the first place :).

phbnf added 5 commits July 24, 2026 10:05
Update subtree consistency probe descriptions in cmd/proofgen/main.go
to use end and size terminology rather than size1 and size2, and regenerate
all corresponding JSON probe files under testdata/subtreeconsistency/.

TAG=agy
CONV=1f76bf92-7d8b-43a5-942a-a4bd88025626
@phbnf
phbnf requested a review from AlCutter July 24, 2026 11:53
@phbnf
phbnf requested a review from a team as a code owner July 24, 2026 11:53
@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 31 lines in your changes missing coverage. Please review.
✅ Project coverage is 47.14%. Comparing base (417fb0c) to head (2079968).

Files with missing lines Patch % Lines
cmd/proofgen/main.go 0.00% 31 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #257      +/-   ##
==========================================
+ Coverage   46.57%   47.14%   +0.57%     
==========================================
  Files           8        8              
  Lines         977      980       +3     
==========================================
+ Hits          455      462       +7     
+ Misses        511      508       -3     
+ Partials       11       10       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AlCutter AlCutter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no meaningful way of reviewing this, so... LGTM?

@phbnf
phbnf merged commit 5362033 into transparency-dev:main Jul 27, 2026
17 of 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.

Implement MTC primitives

2 participants