Skip to content

Conversation

@lukevalenta
Copy link
Contributor

@lukevalenta lukevalenta commented Aug 3, 2025

I'll probably leave this PR as a draft until the next stable release of the RustCrypto libraries.

- Remove duplicate upload_issuers implementations.
- Make ObjectBackend methods parameters more flexible for convenience.
- Rename ProofPreparer -> TlogTileRecorder as this is now used for more than just proofs. (We probably want to move this and PreloadedTlogTileReader to tlog_tiles, but leaving that out of this PR to reduce the diff.)
- Rename SimpleTlogTileReader -> PreloadedTlogTileReader as more descriptive name
- Rename RecordProof -> InclusionProof for consistency with RFC9162 terminology
- Rename TreeProof -> ConsistencyProof for consistency with RFC9162 terminology
- Add `tile_reader_for_indexes` function to deduplicate logic across prove_inclusion, prove_consistency, and read_edge_tiles.
- Use TileHashReader::read_hashes to fetch edge tiles, removing the need for the `read_and_verify_tiles` function and aligning the code more closely to sunlight: https://github.com/FiloSottile/sunlight/blob/409a4d4913368c7e28d012118e567eb1f8c90900/internal/ctlog/ctlog.go#L243.
- Move ProveInclusionQuery/Response structs to mtc frontend worker. Now that prove-inclusion requests are handled without contacting the sequencer, these application-specific endpoints should be defined with the application.
As a measure to prevent #84, immediately confirm that we can fetch the
correct objects from R2 after they are uploaded.

I was having trouble getting the sentry integration working, so in the
meantime update the Cleaner to just check that each full level-0 tile
exists. This will stop progress indefinitely to allow us to detect if
more tiles go missing.
@lukevalenta lukevalenta self-assigned this Aug 3, 2025
Base automatically changed from lvalenta/r2-check to main August 4, 2025 17:08
@lukevalenta lukevalenta requested a review from rozbb October 9, 2025 19:35
@lukevalenta
Copy link
Contributor Author

I think at this point the only useful commit from this PR is b2141bc.

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.

2 participants