Skip to content

Rename mtc_worker and mtc_api to bootstrap_mtc_worker and bootstrap_mtc_api, closes #196#199

Open
lukevalenta wants to merge 1 commit intolvalenta/remove-psc-187from
lvalenta/bootstrap-mtc-rename-196
Open

Rename mtc_worker and mtc_api to bootstrap_mtc_worker and bootstrap_mtc_api, closes #196#199
lukevalenta wants to merge 1 commit intolvalenta/remove-psc-187from
lvalenta/bootstrap-mtc-rename-196

Conversation

@lukevalenta
Copy link
Copy Markdown
Contributor

@lukevalenta lukevalenta commented Apr 3, 2026

NOTE: this is based on #198, so merge that first.

Renames both crates and all associated types to distinguish the bootstrap MTC implementation (used for the bootstrap MTC experiment) from the forthcoming 'real' MTC implementation (#197). We'll move shared functionality into a common crate later.

Crate renames:

  • crates/mtc_worker/ → crates/bootstrap_mtc_worker/
  • crates/mtc_api/ → crates/bootstrap_mtc_api/

Type and symbol renames in integration_tests:

  • MtcClient → BootstrapMtcClient
  • MtcChain → BootstrapMtcChain
  • make_mtc_chain → make_bootstrap_mtc_chain
  • mtc_log_name → bootstrap_mtc_log_name
  • MTC_LOG_NAME → BOOTSTRAP_MTC_LOG_NAME
  • AddEntryResponse → BootstrapMtcAddEntryResponse
  • GetCertificateResponse → BootstrapMtcGetCertificateResponse
  • MtcMetadataResponse → BootstrapMtcMetadataResponse
  • tests/mtc_api.rs → tests/bootstrap_mtc_api.rs

…tc_api, closes #196

Renames both crates and all associated types to distinguish the bootstrap
MTC implementation (used for the bootstrap MTC experiment) from the
forthcoming 'real' MTC implementation (#197). We'll move shared
functionality into a common crate later.

Crate renames:
- crates/mtc_worker/ → crates/bootstrap_mtc_worker/
- crates/mtc_api/    → crates/bootstrap_mtc_api/

Type and symbol renames in integration_tests:
- MtcClient               → BootstrapMtcClient
- MtcChain                → BootstrapMtcChain
- make_mtc_chain          → make_bootstrap_mtc_chain
- mtc_log_name            → bootstrap_mtc_log_name
- MTC_LOG_NAME            → BOOTSTRAP_MTC_LOG_NAME
- AddEntryResponse        → BootstrapMtcAddEntryResponse
- GetCertificateResponse  → BootstrapMtcGetCertificateResponse
- MtcMetadataResponse     → BootstrapMtcMetadataResponse
- tests/mtc_api.rs        → tests/bootstrap_mtc_api.rs
@lukevalenta lukevalenta self-assigned this Apr 3, 2026
@lukevalenta lukevalenta added the mtc Merkle Tree Certificates label Apr 3, 2026
@lukevalenta lukevalenta requested review from a team, bwesterb, cjpatton, mendess and rozbb as code owners April 3, 2026 14:53
@lukevalenta
Copy link
Copy Markdown
Contributor Author

/bonk review

Copy link
Copy Markdown

@ask-bonk ask-bonk bot 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 — the rename is clean and complete.

I verified:

  • No stale references: Every occurrence of the old names (mtc_worker, mtc_api, MtcClient, MtcChain, make_mtc_chain, mtc_log_name, MTC_LOG_NAME, MtcMetadataResponse, tests/mtc_api.rs) has been renamed. No stragglers in Cargo manifests, Rust source, CI workflows, or docs.
  • Old directories removed: crates/mtc_worker/ and crates/mtc_api/ no longer exist.
  • All 37 changed files are consistent: Root Cargo.toml, Cargo.lock, all sub-crate Cargo.tomls, build.rs, use statements, integration tests, .github/workflows/integration.yml, and AGENTS.md all reference the new bootstrap_mtc_* names.
  • Crate-internal types like AddEntryResponse and GetCertificateResponse correctly keep their short names since they're already namespaced by the renamed crate — no issue there.
  • wrangler.jsonc still has "name": "mtc" and R2 bucket names mtc-public-dev* — these are provisioned infrastructure identifiers, not code references, so leaving them as-is is correct.

No issues found.

@ask-bonk
Copy link
Copy Markdown

ask-bonk bot commented Apr 3, 2026

PR #199 has been approved. The rename from mtc_worker/mtc_api to bootstrap_mtc_worker/bootstrap_mtc_api is clean and complete — no stale references, all 37 files are consistent, and the intentionally unchanged infrastructure identifiers in wrangler.jsonc are correct.

github run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mtc Merkle Tree Certificates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant