forked from unattended-backpack/sensors
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
56 lines (52 loc) · 2.17 KB
/
Copy pathCargo.toml
File metadata and controls
56 lines (52 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[workspace]
resolver = "2"
members = [
"crates/protocol",
"crates/sensor",
"crates/events",
"crates/da",
"crates/prover",
"crates/transport",
"crates/funder",
"crates/chain",
"crates/orchestrator",
]
# The zkVM guest wrappers are their own workspaces (older guest toolchains, their
# own [patch] tables); they path-dep `protocol` and are built with sp1up/rzup,
# not by the root workspace.
exclude = ["guest/sp1", "guest/risc0", "host/zkprover"]
[workspace.package]
edition = "2021"
license = "MIT OR Apache-2.0"
version = "0.1.0"
# Single-sourced dependency versions. Every crate in the workspace pulls the
# crypto stack from here so the native, test, and (future) zkVM-guest builds
# can never drift to different curve/signature implementations (PLAN.md §3, §4).
[workspace.dependencies]
# One curve family for everything: ristretto Pedersen commitments, ed25519
# signatures, x25519 encryption, bulletproofs (M4). All no_std-capable.
curve25519-dalek = { version = "4", default-features = false, features = ["alloc", "zeroize", "serde"] }
ed25519-dalek = { version = "2", default-features = false, features = ["alloc"] }
sha2 = { version = "0.10", default-features = false }
# Pure-Rust BLS12-381 scalar field for the in-guest blob polynomial evaluation
# (EIP-4844 point-evaluation binding). no_std; the guest never computes KZG.
bls12_381 = { version = "0.8", default-features = false }
# Host-side only (sensor keygen/signing, encryption to funders). Not used by the
# verification-only `protocol` crate, so none of this reaches the zkVM guest.
x25519-dalek = { version = "2", features = ["static_secrets"] }
chacha20poly1305 = "0.10"
rand_core = { version = "0.6", features = ["getrandom"] }
# Host orchestration, events, and chain client.
serde = { version = "1", features = ["derive"] }
serde_json = "1"
anyhow = "1"
hex = "0.4"
rand = "0.8"
rand_chacha = "0.3"
alloy = { version = "1", features = ["full", "kzg"] }
tokio = { version = "1", features = ["full"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
[profile.release]
# The zkVM guest pays per RISC-V cycle; keep the protocol code tight.
lto = true
codegen-units = 1