Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(proof_data_handler): add new endpoints to the TEE prover interface API #1993

Merged
merged 42 commits into from
Jun 12, 2024
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
63214e8
Introduce initial version of TEE request processor
pbeza May 15, 2024
20dee9c
WIP: simplify
pbeza May 16, 2024
7ad4563
Refine the TEE proof submission endpoint
pbeza May 17, 2024
90bef14
Added the initial unit test for the prover interface
pbeza May 20, 2024
377a0ba
Fix the unit test for the /tee_proof_generation_data endpoint
pbeza May 21, 2024
9412d7e
Move tests to a separate file
pbeza May 22, 2024
75cee28
Add a unit test for the /submit_tee_proof endpoint
pbeza May 22, 2024
d952f8a
Create a new SQL table to track TEE proof generation details
pbeza May 23, 2024
e5edaa3
Add .sqlx `query-*.json` files
pbeza May 23, 2024
b468c30
Add one more serialization test to cover both SubmitProofRequest and …
pbeza May 23, 2024
c140233
Utilize mocked SQL table in unit tests for the /tee_proof_generation_…
pbeza May 23, 2024
9ea9cfe
Revise database schema and update dependent code
pbeza May 24, 2024
71a263c
Fix request_tee_proof_generation_data unit test by
pbeza May 27, 2024
aca8810
Refine /submit_tee_proof endpoint unit test
pbeza May 27, 2024
d763c9c
Address CI code formatting complaints
pbeza May 27, 2024
ac83fa5
Reformat SQL queries using `zk fmt`
pbeza May 28, 2024
f985d62
Simplify unit tests
pbeza May 28, 2024
c0a8d34
Rename /tee_proof_generation_data endpoint to /tee_proof_inputs
pbeza May 31, 2024
8b83be4
Rename `attestation` to `proof`
pbeza May 31, 2024
dc24fb5
Fix test_proof_request_serialization unit test
pbeza May 31, 2024
143abaf
Add tee_attestations SQL table
pbeza Jun 3, 2024
a445762
Add valid_until column to the attestations table
pbeza Jun 4, 2024
0bfe0c1
Get rid of mime dependency
pbeza Jun 5, 2024
d07b649
Remove println! from the production code
pbeza Jun 5, 2024
b893618
Remove println! from tests
pbeza Jun 5, 2024
0d21e6e
Propagate errors instead of using unwrap()
pbeza Jun 5, 2024
1277ae1
Replace ObjectSoreFactory with MockObjectStore after rebase
pbeza Jun 5, 2024
3e8013c
Remove unused dependency
pbeza Jun 5, 2024
3a5aef6
Use workspace dependencies only
pbeza Jun 6, 2024
d2dbd95
Don't use deprecated hyper::body::to_bytes
pbeza Jun 6, 2024
5bbba0c
Remove valid_until column
pbeza Jun 6, 2024
7b092ac
Refactor TEE endpoints and make them optional
pbeza Jun 7, 2024
c753a46
Add a comment to clarify the role of the L1BatchTeeProofForL1 struct
pbeza Jun 10, 2024
76af19d
Remove redundant dependency (vm_utils)
pbeza Jun 10, 2024
9a22bb3
Remove redundant dependency (zksync_utils)
pbeza Jun 10, 2024
10d0c8a
Don't create TEE objects unless TEE support is enabled
pbeza Jun 10, 2024
46d0631
Update Cargo.lock
pbeza Jun 10, 2024
9de0bec
Create tee_proof_generation_job once the verifier input is produced
pbeza Jun 10, 2024
7d73747
Rework error handling as suggested by Igor
pbeza Jun 10, 2024
c48b07d
`zk fmt` fixes
pbeza Jun 11, 2024
6c1c448
Add missing config option to /etc/env/base/proof_data_handler.toml
pbeza Jun 11, 2024
eb145f4
Remove 'skip proof generation' feature from the TEE prover
pbeza Jun 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Get rid of mime dependency
pbeza committed Jun 11, 2024

Verified

This commit was signed with the committer’s verified signature.
orsenthil Senthil Kumaran
commit 0bfe0c1961042f9c4d63005d8426368a495e9356
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion core/node/proof_data_handler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -26,7 +26,6 @@ tracing.workspace = true
[dev-dependencies]
http-body-util = "0.1.0"
hyper = { version = "0.14", features = ["full"] }
mime = "0.3.16"
chrono.workspace = true
multivm.workspace = true
serde_json.workspace = true
4 changes: 2 additions & 2 deletions core/node/proof_data_handler/src/tests.rs
Original file line number Diff line number Diff line change
@@ -97,7 +97,7 @@ async fn request_tee_proof_inputs() {
Request::builder()
.method(Method::POST)
.uri("/tee_proof_inputs")
.header(http::header::CONTENT_TYPE, mime::APPLICATION_JSON.as_ref())
.header(http::header::CONTENT_TYPE, "application/json")
.body(req_body)
.unwrap(),
)
@@ -238,7 +238,7 @@ async fn send_submit_tee_proof_request(
Request::builder()
.method(Method::POST)
.uri(uri)
.header(http::header::CONTENT_TYPE, mime::APPLICATION_JSON.as_ref())
.header(http::header::CONTENT_TYPE, "application/json")
.body(req_body)
.unwrap(),
)