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 #232 (V2 identity, metainfo and Merkle integrity) 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) |
The v1-only magnet model cannot retain a full v2 identity or require both exact topics in a hybrid magnet. Introduce distinct full SHA-256 identities and a paired torrent identity, then parse and reconstruct
btmhand hybrid magnets without truncating their hashes.Part of #162; stacked on #170 (
torrent-v2-05-sha256). Multihash decoding validates canonical algorithm/length varints and the complete digest length, reports unsupported algorithms through a dedicated error type, accepts repeated equal topics, and rejects conflicting topics. Identity authentication requires every supplied topic to match the original info bytes. V2 identities sharing a 20-byte wire prefix remain distinct.The existing v1 runtime explicitly rejects access to a magnet carrying a v2 topic, preventing silent fallback while v2 metainfo and wire integration remain incomplete. This PR adds identity handling; it does not advertise working v2 downloads.
Validation: all 324 local torrent tests passed with no skipped tests, both pinned independent-client conformance scenarios executed, and the native-runtime dependency guard passed. New cases cover full/prefix identity separation, hybrid authentication, malformed and unsupported multihashes, duplicate/conflicting topics, and v2/hybrid URI reconstruction.