Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ctian1 committed Jan 10, 2025
1 parent 86f7bfe commit 92828fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions book/docs/generating-proofs/prover-network/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ println!("Proof request ID: {}", request_id);
// Wait for proof complete with a timeout
let proof = prover.wait_proof(request_id, Some(Duration::from_secs(60 * 60))).await.unwrap();
// Request a proof with reserved prover network capacity
// Request a proof with reserved prover network capacity and wait for it to be fulfilled
let proof = prover
.prove(&pk, &stdin)
.groth16()
Expand All @@ -64,12 +64,13 @@ let proof = prover
.await
.unwrap();
// Request a proof and then block immediately until the proof is fulfilled
// Request a proof and then block immediately (up to a timeout) until the proof is fulfilled
let proof = prover
.prove(&pk, &stdin)
.groth16()
.skip_simulation(true)
.fulfillment_strategy(FulfillmentStrategy::Reserved)
.timeout(Duration::from_secs(60 * 60))
.run()
.unwrap();
```

0 comments on commit 92828fb

Please sign in to comment.