Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Superseded by #235 (V2 handshake, hash exchange and bounded transport) in the consolidated eight-PR stack for #162. The replacement preserves this PR's code and subsequent fixes; its description links the original head and review discussions. The only additional consolidation fix is the CI-discovered listener cancellation regression, documented on the replacement. All eight replacements have passed their required CI checks. Closing without merging. This branch and its discussions remain available for reference. Review index: #162 (comment) |
Authenticates correlated BEP 52 hash responses against a metadata-trusted file root before peer hashes can be treated as trusted metadata. The verifier checks file-tree bounds and exact response shape, reduces aligned base-hash groups, handles uncle ordering and omitted proof layers, and rejects noncanonical zero padding even when it matches the supplied root.
Stacked on #186; advances hash integrity and exchange work in #162. It accepts proofs reaching a trusted root; cached intermediate anchors, outstanding-request tracking, byte admission/caching, serving and live connection integration remain pending. Hash authentication does not replace payload verification or storage commit barriers.
Validation: four focused JVM tests pass with no failures/errors/skips, covering leaf/piece-layer ranges, both tree sides, whole layers, per-byte corruption, selector mismatches, truncated/out-of-tree/partial proofs, invalid zero padding, and signed 64-bit maximum file-length arithmetic. Torrent iOS test-source compilation also passes. No executed v2 wire interoperability is claimed by this primitive.