-
Notifications
You must be signed in to change notification settings - Fork 12
/
Cargo.toml
159 lines (145 loc) · 7.39 KB
/
Cargo.toml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[package]
name = "halo2-zk-email"
version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
num-bigint = { version = "0.4", features = ["rand"] }
sha2 = "0.10.6"
rand = "0.8.5"
rsa = { version = "0.9.6", features = ["serde", "sha2"] }
halo2-base = { version = "0.2.2", default-features = false, features = [
"halo2-pse",
"display",
], git = "https://github.com/axiom-crypto/halo2-lib.git", rev = "9860acc" }
halo2-ecc = { version = "0.2.2", default-features = false, features = [
"halo2-pse",
"display",
], git = "https://github.com/axiom-crypto/halo2-lib.git", rev = "9860acc" }
# halo2-dynamic-sha256 = { path = "../halo2-dynamic-sha256-1" }
halo2-dynamic-sha256 = { git = "https://github.com/zkemail/halo2-dynamic-sha256.git", version = "0.1.0", branch = "main" }
halo2-rsa = { git = "https://github.com/zkemail/halo2-rsa.git", version = "0.1.0", branch = "main", default-features = false }
# halo2-regex = { path = "../halo2-regex-1", version = "0.1.0" }
halo2-base64 = { git = "https://github.com/zkemail/halo2-base64.git", version = "0.1.0", branch = "feat/main_gate" }
num-traits = "0.2.15"
base64 = "0.21"
# snark-verifier = { git = "https://github.com/privacy-scaling-explorations/snark-verifier.git", version = "0.1.0", branch = "main" }
# halo2_wrong_ecc = { git = "https://github.com/privacy-scaling-explorations/halo2wrong", tag = "v2023_02_02", package = "ecc" }
ark-std = { version = "0.4.0", features = ["print-trace"] }
itertools = "0.10.3"
clap = { version = "=4.2.1", features = ["derive"] }
serde_json = "1.0.95"
serde = { version = "1.0.159", features = ["derive"] }
slog = "2.7.0"
fancy-regex = "0.11.0"
poseidon = { version = "0.2.0", git = "https://github.com/privacy-scaling-explorations/poseidon.git", rev = "2fb4a2385bada39b50dce12fe50cb80d2fd33476" }
regex-simple = { version = "1", package = "regex" }
hex = "0.4.3"
serde_regex = "1.1.0"
mailparse = "0.14"
thiserror = "1.0.40"
once_cell = "1.18.0"
cfdkim = { version = "0.3.0", git = "https://github.com/SoraSuegami/dkim.git" }
# cfdkim = { version = "0.3.0", path = "../dkim" }
log = "0.4.17"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
halo2-regex = { git = "https://github.com/zkemail/halo2-regex.git", version = "0.1.0" }
# halo2-regex = { path = "../halo2-regex-1", version = "0.1.0" }
ethers = { version = "2.0.8", default_features = false, features = [
"ethers-solc",
], git = "https://github.com/gakonst/ethers-rs.git", tag = "ethers-v2.0.8" }
snark-verifier = { git = "https://github.com/zkemail/snark-verifier.git", version = "0.1.0", branch = "main", default-features = false, features = [
"loader_evm",
"loader_halo2",
"halo2-pse",
] }
snark-verifier-sdk = { git = "https://github.com/zkemail/snark-verifier.git", version = "0.0.1", branch = "main", default-features = false, features = [
"loader_evm",
"loader_halo2",
"halo2-pse",
] }
ethereum-types = { version = "0.14", default-features = false, features = [
"std",
] }
tokio = { version = "1.16", features = [
"net",
"io-util",
"time",
"rt-multi-thread",
"macros",
] }
home = { version = "=0.5.5" }
[target.'cfg(target_family = "wasm")'.dependencies]
getrandom = { version = "0.2", features = ["js"] }
wasm-bindgen = { version = "=0.2.91", features = ["serde-serialize"] }
# { git = "https://github.com/rustwasm/wasm-bindgen.git", rev = "fe8bc949b5553ca6da811f13209d9f3b86cc5b1e", version = "0.2.91", features = [
# "serde-serialize",
# ] }
console_error_panic_hook = "0.1.7"
rayon = "1.5"
wasm-bindgen-rayon = { version = "1.0" }
web-sys = { version = "0.3", features = [
"Request",
"Window",
"Response",
"Storage",
"console",
] }
wasm-bindgen-futures = "=0.4.39"
# { git = "https://github.com/rustwasm/wasm-bindgen.git", rev = "fe8bc949b5553ca6da811f13209d9f3b86cc5b1e", version = "0.4.41" }
js-sys = "=0.3.68"
# { git = "https://github.com/rustwasm/wasm-bindgen.git", rev = "fe8bc949b5553ca6da811f13209d9f3b86cc5b1e", version = "0.3" }
halo2-regex = { git = "https://github.com/zkemail/halo2-regex.git", version = "0.1.0", default-features = false }
# halo2-regex = { path = "../halo2-regex-1", version = "0.1.0", default-features = false }
snark-verifier-sdk = { git = "https://github.com/zkemail/snark-verifier.git", version = "0.0.1", branch = "main", default-features = false, features = [
"halo2-pse",
"loader_halo2",
] }
# gloo-storage = "0.3.0"
stringreader = "0.1.1"
serde-wasm-bindgen = "0.6.2"
wasm-bindgen-console-logger = "0.1.1"
# indexed_db_futures = "0.4.1"
# reqwasm = { version = "0.5.0", git = "https://github.com/SoraSuegami/reqwasm.git", branch = "master" }
[dev-dependencies]
criterion = { version = "0.3" }
temp-env = "0.3.3"
[[bench]]
name = "email_verify"
harness = false
# [[bench]]
# name = "recursion"
# harness = false
# [patch."https://github.com/axiom-crypto/halo2-lib.git"]
# halo2-base = { version = "0.2.2", default-features = false, features = [
# "halo2-pse",
# "display",
# ], git = "https://github.com/axiom-crypto//halo2-lib.git", rev = "9860acc" }
# halo2-ecc = { version = "0.2.2", default-features = false, features = [
# "halo2-pse",
# "display",
# ], git = "https://github.com/axiom-crypto//halo2-lib.git", rev = "9860acc" }
# halo2-base = { version = "0.2.2", git = "https://github.com/SoraSuegami/halo2-lib.git" }
# halo2-ecc = { version = "0.2.2", git = "https://github.com/SoraSuegami/halo2-lib.git" }
[patch."https://github.com/privacy-scaling-explorations/halo2.git"]
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations//halo2.git", tag = "v2023_02_02" }
[patch.crates-io]
colored = { git = "https://github.com/colored-rs/colored.git", version = "2.0.4", tag = "v2.0.4" }
lalrpop = { git = "https://github.com/lalrpop/lalrpop.git", tag = "0.20.0", version = "0.20.0" }
lalrpop-util = { git = "https://github.com/lalrpop/lalrpop.git", tag = "0.20.0", version = "0.20.0" }
cargo-platform = { git = "https://github.com/rust-lang/cargo.git", rev = "2b28383", version = "0.1.5" }
bumpalo = { git = "https://github.com/fitzgen/bumpalo.git", tag = "3.14.0", version = "3.14.0" }
ahash = { git = "https://github.com/tkaitchuck/aHash.git", rev = "2153ab9", version = "0.8.6" }
curve25519-dalek = { git = "https://github.com/dalek-cryptography/curve25519-dalek.git", tag = "curve25519-4.1.1", version = "4.1.1" }
scale-info = { git = "https://github.com/paritytech/scale-info.git", tag = "v2.10.0", version = "2.10.0" }
parity-scale-codec = { git = "https://github.com/paritytech/parity-scale-codec.git", tag = "v3.6.9", version = "3.6.9" }
plotters = { git = "https://github.com/plotters-rs/plotters.git", tag = "v0.3.5", version = "0.3.5" }
pathfinder_simd = { git = "https://github.com/servo/pathfinder.git", rev = "b01bbcc", version = "=0.5.2" }
pathfinder_geometry = { git = "https://github.com/servo/pathfinder.git", rev = "b01bbcc", version = "=0.5.1" }
# wasm-bindgen-futures = { git = "https://github.com/rustwasm/wasm-bindgen.git", rev = "fe8bc949b5553ca6da811f13209d9f3b86cc5b1e", version = "0.4.41" }
# wasm-bindgen-macro = { git = "https://github.com/rustwasm/wasm-bindgen.git", rev = "fe8bc949b5553ca6da811f13209d9f3b86cc5b1e", version = "0.2.29" }
# wasm-bindgen = { git = "https://github.com/rustwasm/wasm-bindgen.git", rev = "fe8bc949b5553ca6da811f13209d9f3b86cc5b1e", version = "0.2.91", features = [
# "serde-serialize",
# ] }
# js-sys = { git = "https://github.com/rustwasm/wasm-bindgen.git", rev = "fe8bc949b5553ca6da811f13209d9f3b86cc5b1e", version = "0.3" }