-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: execute+prove endpoint (#17)
Problem: we want to provide an endpoint that runs a program in proof mode and directly runs the prover on the execution artifacts. Solution: add a new RPC endpoint that executes and proves the program and returns the proof.
- Loading branch information
Olivier Desenfans
authored
Nov 27, 2023
1 parent
3774f15
commit f7a5428
Showing
6 changed files
with
192 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
tonic_build::compile_protos("../protocols/prover.proto")?; | ||
let builder = tonic_build::configure() | ||
.protoc_arg("--experimental_allow_proto3_optional") | ||
.build_server(false); | ||
builder.compile(&["../protocols/prover.proto"], &["../protocols"])?; | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
tonic_build::compile_protos("../protocols/prover.proto")?; | ||
let builder = tonic_build::configure() | ||
.protoc_arg("--experimental_allow_proto3_optional") | ||
.build_client(true); | ||
builder.compile(&["../protocols/prover.proto"], &["../protocols"])?; | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters