Skip to content

Commit

Permalink
feat(tee): TEE Prover Gateway
Browse files Browse the repository at this point in the history
The TEE Prover Gateway is a service component within our system infrastructure
that functions as an intermediary between the TEE enclave and the server's
HTTP API, introduced in commit eca98cc (#1993). It first registers TEE
attestation using the /tee/register_attestation endpoint, then regularly
invokes the server's HTTP API via the /tee/proof_inputs endpoint to obtain
proof-related data, and finally submits the proof through the
/tee/submit_proofs/<l1_batch_number> endpoint.
  • Loading branch information
pbeza committed Jun 26, 2024
1 parent 8b1fbab commit 1527411
Show file tree
Hide file tree
Showing 6 changed files with 408 additions and 14 deletions.
58 changes: 48 additions & 10 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ members = [
"core/bin/verified_sources_fetcher",
"core/bin/zksync_server",
"core/bin/genesis_generator",
"core/bin/zksync_tee_prover",
# Node services
"core/node/node_framework",
"core/node/proof_data_handler",
Expand Down Expand Up @@ -121,6 +122,7 @@ iai = "0.1"
insta = "1.29.0"
itertools = "0.10"
jsonrpsee = { version = "0.21.0", default-features = false }
k256 = { version = "0.13.3", features = ["sha256", "ecdsa", "serde", "ecdsa-core", "expose-field", "hash2curve"], optional = false }
lazy_static = "1.4"
leb128 = "0.2.5"
lru = { version = "0.12.1", default-features = false }
Expand Down
30 changes: 30 additions & 0 deletions core/bin/zksync_tee_prover/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[package]
name = "zksync_tee_prover"
version.workspace = true
edition.workspace = true
authors.workspace = true
homepage.workspace = true
repository.workspace = true
license.workspace = true
keywords.workspace = true
categories.workspace = true

[dependencies]
anyhow.workspace = true
async-trait.workspace = true
clap = { workspace = true, features = ["derive"] }
k256.workspace = true
reqwest.workspace = true
serde = { workspace = true, features = ["derive"] }
tokio = { workspace = true, features = ["full"] }
tracing.workspace = true
url.workspace = true
zksync_basic_types.workspace = true
zksync_config.workspace = true
zksync_env_config.workspace = true
zksync_node_framework.workspace = true
zksync_proof_data_handler.workspace = true
zksync_prover_interface.workspace = true
zksync_tee_verifier.workspace = true
zksync_types.workspace = true
zksync_vlog.workspace = true
Loading

0 comments on commit 1527411

Please sign in to comment.