Skip to content

feat(proof): add proof types crate and remote proof tracking DBs#10

Merged
prajwolrg merged 15 commits intomainfrom
STR-2628-active-proof-db
Mar 19, 2026
Merged

feat(proof): add proof types crate and remote proof tracking DBs#10
prajwolrg merged 15 commits intomainfrom
STR-2628-active-proof-db

Conversation

@prajwolrg
Copy link
Copy Markdown
Collaborator

@prajwolrg prajwolrg commented Mar 18, 2026

Description

  • Reorganizes proof-related crates under crates/proof/:
    • Moves proof-db to proof/db and proof-impl to proof/statements
    • Introduces a new proof/types crate (strata-asm-proof-types) with AsmProof, MohoProof, ProofId, RemoteProofId, and L1Range types
  • Refactors ProofDb to store ProofReceiptWithMetadata instead of raw Vec<u8>
  • Adds two new DB traits with sled-backed implementations:
    • RemoteProofMappingDb — bidirectional mapping between local ProofIds and RemoteProofIds from the remote prover
    • RemoteProofStatusDb — tracks execution status of in-flight remote proof jobs
  • Includes proptest for all new DB implementations

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature/Enhancement (non-breaking change which adds functionality or enhances an existing one)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactor
  • New or updated tests
  • Dependency update
  • Security fix

Notes to Reviewers

Checklist

  • I have performed a self-review of my code.
  • I have commented my code where necessary.
  • I have updated the documentation if needed.
  • My changes do not introduce new warnings.
  • I have added tests that prove my changes are effective or that my feature works.
  • New and existing tests pass with my changes.

Related Issues

@prajwolrg prajwolrg force-pushed the STR-2628-active-proof-db branch from fd3e41b to 2cf96ef Compare March 18, 2026 07:37
@prajwolrg prajwolrg changed the title Str 2628 active proof db feat(proof): add proof types crate and remote proof tracking DBs Mar 18, 2026
@prajwolrg prajwolrg marked this pull request as ready for review March 18, 2026 07:39
@prajwolrg prajwolrg force-pushed the STR-2628-active-proof-db branch from 2cf96ef to f09756c Compare March 18, 2026 07:41
@prajwolrg prajwolrg self-assigned this Mar 18, 2026
@prajwolrg prajwolrg force-pushed the STR-2628-active-proof-db branch from f09756c to 3cb9d4c Compare March 18, 2026 10:12
@MdTeach MdTeach self-requested a review March 18, 2026 11:12
Copy link
Copy Markdown

@MdTeach MdTeach left a comment

Choose a reason for hiding this comment

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

Overall looks good.
I think some section related to RemoteProof* are proof-agnostic and can be reused by Bridge Proof and others.

Comment thread crates/proof/db/src/sled/mod.rs Outdated
Comment thread crates/proof/db/Cargo.toml
Comment thread crates/proof/db/src/sled/remote_status.rs
@prajwolrg prajwolrg requested review from delbonis March 18, 2026 15:52
@prajwolrg prajwolrg requested a review from MdTeach March 18, 2026 16:02
Copy link
Copy Markdown
Collaborator

@evgenyzdanovich evgenyzdanovich left a comment

Choose a reason for hiding this comment

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

Looks good.

@prajwolrg prajwolrg added this pull request to the merge queue Mar 19, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Mar 19, 2026
@prajwolrg prajwolrg added this pull request to the merge queue Mar 19, 2026
Merged via the queue into main with commit c85fbcb Mar 19, 2026
13 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.

3 participants