Skip to content

Commit c07e423

Browse files
committed
mirror_worker: list /sign-subtree in the module route header
Add the POST /sign-subtree route to the frontend_worker module doc's route list with a [signsub] link, matching lib.rs. Addresses bonk #273 finding 2.
1 parent ad3548f commit c07e423

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

crates/mirror_worker/src/frontend_worker.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
//! with one spec-mandated exception: the mirror MUST NOT cosign in
1212
//! this process. Successful responses have an empty body and HTTP
1313
//! status 200.
14+
//! - `POST /sign-subtree`: [c2sp.org/tlog-witness#sign-subtree][signsub].
15+
//! Countersigns a subtree of a checkpoint this mirror has previously
16+
//! cosigned. OPTIONAL in the spec but always available here, since the
17+
//! mirror's cosigner is ML-DSA-44 / `subtree/v1`. Success returns the
18+
//! `subtree/v1` cosignature line(s) as `text/plain`.
1419
//! - `GET /metadata`: mirror identity, ML-DSA-44 SPKI,
1520
//! `mirror_algorithm`, prefixes, and the per-log configuration.
1621
//! - `GET /`: root status string.
@@ -19,6 +24,7 @@
1924
//! Durable Object; see [`crate::mirror_state_do`] for details.
2025
//!
2126
//! [add-cp]: https://c2sp.org/tlog-mirror#add-checkpoint
27+
//! [signsub]: https://c2sp.org/tlog-witness#sign-subtree
2228
//! [`MirrorState`]: crate::mirror_state_do
2329
2430
use crate::{

0 commit comments

Comments
 (0)