Skip to content

Commit 743c7a2

Browse files
committed
doc: add a note explaining usage of any remote host
1 parent 90f842d commit 743c7a2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bin/asm-runner/src/prover/orchestrator.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ impl<R: ZkVmRemoteHost> ProofOrchestrator<R> {
127127
) -> Result<()> {
128128
let typed_id = to_typed_proof_id::<R>(remote_id)?;
129129

130+
// NOTE: We use `self.asm` here but this could be any `ZkVmRemoteHost` instance.
131+
// `get_status` only requires a network client and proof ID — not the ELF or
132+
// proving key. Since the orchestrator is generic over a single `R: ZkVmRemoteHost`,
133+
// both `asm` and `moho` share the same concrete type, so either works.
130134
let new_status = self
131135
.asm
132136
.get_status(&typed_id)
@@ -171,6 +175,10 @@ impl<R: ZkVmRemoteHost> ProofOrchestrator<R> {
171175
remote_id: &RemoteProofId,
172176
typed_id: &R::ProofId,
173177
) -> Result<()> {
178+
// NOTE: We use `self.asm` here but this could be any `ZkVmRemoteHost` instance.
179+
// `get_proof` only requires a network client and proof ID — not the ELF or
180+
// proving key. Since the orchestrator is generic over a single `R: ZkVmRemoteHost`,
181+
// both `asm` and `moho` share the same concrete type, so either works.
174182
let receipt = self
175183
.asm
176184
.get_proof(typed_id)

0 commit comments

Comments
 (0)