-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathCargo.toml
103 lines (94 loc) · 2.86 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
[package]
name = "zkcreds"
version = "0.1.0"
authors = ["Michael Rosenberg <[email protected]>"]
edition = "2021"
license = "MIT/Apache-2.0"
[dependencies]
ark-bls12-381 = "0.3"
ark-crypto-primitives = { version = "0.3", features = ["r1cs"], default-features = false }
ark-ec = "0.3"
ark-ed-on-bls12-381 = { version = "0.3", features = ["r1cs"] }
ark-ff = "0.3"
ark-relations = "0.3"
ark-r1cs-std = "0.3"
ark-std = "0.3"
ark-serialize = "0.3"
arkworks-native-gadgets = "0.5"
arkworks-r1cs-gadgets = "0.5"
arkworks-utils = { version = "0.5", features = [ "poseidon_bls381_x3_5" ] }
base64 = "0.13"
byteorder = "1.4"
derivative = { version = "2.0", features = ["use_core"] }
lazy_static = "1.4"
rand = "0.8"
rand_core = "0.6"
pyo3 = { version = "0.16.5", features = ["extension-module"], optional = true }
rand_chacha = "0.3.1"
[dependencies.linkg16]
git = "ssh://[email protected]/rozbb/linkg16"
rev = "a405a8501c9fa1b69f6ec1c9e39fb6885dc74233"
# We can't use the newer version of ark-crypto-primitives, or its new CRH traits because
# arkworks-gadgets uses the old CRH traits:
# https://github.com/webb-tools/arkworks-gadgets/blob/master/arkworks-native-gadgets/src/mimc.rs#L2=
[patch.crates-io.ark-crypto-primitives]
git = "https://github.com/arkworks-rs/crypto-primitives.git"
rev = "3402a729b7104983c9779714ab8580de5187bbdd"
[features]
default = ["std", "parallel", "asm"]
python = ["pyo3"]
asm = ["ark-ff/asm"]
parallel = [
"ark-crypto-primitives/parallel",
"linkg16/parallel",
"ark-std/parallel",
"ark-ec/parallel",
"ark-ff/parallel",
"ark-r1cs-std/parallel"
]
std = [
"ark-crypto-primitives/std",
"linkg16/std",
"ark-std/std",
"ark-ec/std",
"ark-ff/std",
"ark-r1cs-std/std",
"rand_core/std"
]
[dev-dependencies]
base64 = "0.13"
criterion = { version = "0.3", features = [ "html_reports" ] }
rsa = { version = "0.5", features = [ "alloc" ] }
serde = { version = "1", features = [ "derive" ] }
serde_json = "1"
sha2 = "0.10"
x509-parser = "0.13"
rayon = "1.5"
[package.metadata.maturin]
requires-python = ">=3.8"
classifier = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Rust",
"Topic :: Security :: Cryptography",
"Topic :: System :: Distributed Computing",
"Topic :: Systems Administration :: Authentication/Directory"
]
maintainer = "Michael Rosenberg"
maintainer-email = "[email protected]"
project-url = { homepage = "https://github.com/rozbb/zkcreds-rs/" }
[profile.release]
debug = true
[lib]
name = "zkcreds"
crate-type = ["cdylib", "rlib"]
bench = false
[[bench]]
name = "bench"
harness = false