|
[package]
|
|
name = "crypto-primitives"
|
|
version = "0.1.0"
|
|
authors = [
|
|
"Sean Bowe",
|
|
"Alessandro Chiesa",
|
|
"Matthew Green",
|
|
"Ian Miers",
|
|
"Pratyush Mishra",
|
|
"Howard Wu"
|
|
]
|
|
description = "A library of cryptographic primitives that are used by Zexe"
|
|
homepage = "https://libzexe.org"
|
|
repository = "https://github.com/scipr/zexe"
|
|
documentation = "https://docs.rs/crypto-primitives/"
|
|
keywords = ["r1cs", "groth16", "gm17", "pedersen", "blake2s"]
|
|
categories = ["cryptography"]
|
|
include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
|
|
license = "MIT/Apache-2.0"
|
|
edition = "2018"
|
|
|
|
################################# Dependencies ################################
|
|
|
|
[dependencies]
|
|
algebra-core = { path = "../algebra-core", default-features = false }
|
|
bench-utils = { path = "../bench-utils" }
|
|
|
|
blake2 = { version = "0.8", default-features = false }
|
|
digest = "0.8"
|
|
|
|
ff-fft = { path = "../ff-fft", default-features = false }
|
|
gm17 = { path = "../gm17", optional = true, default-features = false }
|
|
groth16 = { path = "../groth16", optional = true, default-features = false }
|
|
|
|
r1cs-core = { path = "../r1cs-core", optional = true, default-features = false }
|
|
r1cs-std = { path = "../r1cs-std", optional = true, default-features = false }
|
|
|
|
rand = { version = "0.7", default-features = false }
|
|
rayon = { version = "1.0", optional = true }
|
|
derivative = { version = "1.0", features = ["use_core"] }
|
|
|
|
[features]
|
|
default = ["std"]
|
|
r1cs = ["r1cs-core", "r1cs-std"]
|
|
std = ["r1cs", "algebra-core/std", "r1cs-core/std", "r1cs-std/std"]
|
|
parallel = ["std", "rayon", "gm17/parallel", "groth16/parallel", "ff-fft/parallel"]
|
|
|
|
[dev-dependencies]
|
|
algebra = { path = "../algebra", default-features = false, features = [ "jubjub", "bls12_377" ] }
|
|
r1cs-std = { path = "../r1cs-std", default-features = false, features = [ "jubjub", "bls12_377" ] }
|
|
rand_xorshift = { version = "0.2" }
|