2018-08-23 15:15:22 -07:00
|
|
|
[package]
|
|
|
|
name = "zcash_primitives"
|
2019-10-07 20:07:30 -07:00
|
|
|
description = "Rust implementations of the Zcash primitives"
|
2023-04-14 16:56:16 -07:00
|
|
|
version = "0.11.0"
|
2018-08-23 15:15:22 -07:00
|
|
|
authors = [
|
|
|
|
"Jack Grigg <jack@z.cash>",
|
2021-04-08 09:12:47 -07:00
|
|
|
"Kris Nuttycombe <kris@electriccoin.co>"
|
2018-08-23 15:15:22 -07:00
|
|
|
]
|
2019-10-07 20:07:30 -07:00
|
|
|
homepage = "https://github.com/zcash/librustzcash"
|
|
|
|
repository = "https://github.com/zcash/librustzcash"
|
2019-08-02 06:57:34 -07:00
|
|
|
readme = "README.md"
|
2019-10-07 20:07:30 -07:00
|
|
|
license = "MIT OR Apache-2.0"
|
2022-09-02 10:39:21 -07:00
|
|
|
edition = "2021"
|
2023-01-19 15:48:24 -08:00
|
|
|
rust-version = "1.60"
|
2022-05-10 16:28:00 -07:00
|
|
|
categories = ["cryptography::cryptocurrencies"]
|
2018-08-23 15:15:22 -07:00
|
|
|
|
2020-08-22 22:56:03 -07:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
|
2018-08-23 15:15:22 -07:00
|
|
|
[dependencies]
|
2022-11-01 00:23:58 -07:00
|
|
|
equihash = { version = "0.2", path = "../components/equihash" }
|
|
|
|
zcash_address = { version = "0.2", path = "../components/zcash_address" }
|
|
|
|
zcash_encoding = { version = "0.2", path = "../components/zcash_encoding" }
|
|
|
|
|
|
|
|
# Dependencies exposed in a public API:
|
|
|
|
# (Breaking upgrades to these require a breaking upgrade to this crate.)
|
|
|
|
# - CSPRNG
|
|
|
|
rand = "0.8"
|
|
|
|
rand_core = "0.6"
|
|
|
|
|
|
|
|
# - Digests (output types exposed)
|
2021-12-17 14:22:25 -08:00
|
|
|
blake2b_simd = "1"
|
2023-04-11 06:44:09 -07:00
|
|
|
sha2 = "0.10"
|
2022-11-01 00:23:58 -07:00
|
|
|
|
|
|
|
# - Metrics
|
|
|
|
memuse = "0.2.1"
|
|
|
|
|
|
|
|
# - Secret management
|
|
|
|
subtle = "2.2.3"
|
|
|
|
|
|
|
|
# - Shielded protocols
|
2023-03-17 21:15:59 -07:00
|
|
|
bls12_381 = "0.8"
|
|
|
|
ff = "0.13"
|
|
|
|
group = { version = "0.13", features = ["wnaf-memuse"] }
|
2022-05-10 16:06:31 -07:00
|
|
|
incrementalmerkletree = "0.3"
|
2023-03-17 21:15:59 -07:00
|
|
|
jubjub = "0.10"
|
2021-06-17 06:57:10 -07:00
|
|
|
nonempty = "0.7"
|
2023-04-11 06:25:17 -07:00
|
|
|
orchard = { version = "0.4", default-features = false }
|
2022-11-01 00:23:58 -07:00
|
|
|
|
|
|
|
# - Static constants
|
|
|
|
lazy_static = "1"
|
|
|
|
|
|
|
|
# - Test dependencies
|
2021-05-11 08:57:28 -07:00
|
|
|
proptest = { version = "1.0.0", optional = true }
|
2022-11-01 00:23:58 -07:00
|
|
|
|
|
|
|
# - Transparent inputs
|
|
|
|
# - `Error` type exposed
|
|
|
|
hdwallet = { version = "0.3.1", optional = true }
|
|
|
|
# - `SecretKey` and `PublicKey` types exposed
|
2022-03-21 10:24:31 -07:00
|
|
|
secp256k1 = { version = "0.21", optional = true }
|
2022-11-01 00:23:58 -07:00
|
|
|
|
|
|
|
# - ZIP 339
|
2023-04-12 09:19:03 -07:00
|
|
|
bip0039 = { version = "0.10", features = ["std", "all-languages"] }
|
2022-11-01 00:23:58 -07:00
|
|
|
|
|
|
|
# Dependencies used internally:
|
|
|
|
# (Breaking upgrades to these are usually backwards-compatible, but check MSRVs.)
|
|
|
|
# - Encodings
|
|
|
|
byteorder = "1"
|
|
|
|
hex = "0.4"
|
|
|
|
|
|
|
|
# - Shielded protocols
|
|
|
|
bitvec = "1"
|
|
|
|
blake2s_simd = "1"
|
|
|
|
|
|
|
|
# - Transparent inputs
|
|
|
|
ripemd = { version = "0.1", optional = true }
|
|
|
|
|
|
|
|
# - ZIP 32
|
2023-04-11 06:26:58 -07:00
|
|
|
aes = "0.8"
|
|
|
|
fpe = "0.6"
|
2021-12-16 17:32:50 -08:00
|
|
|
|
|
|
|
[dependencies.zcash_note_encryption]
|
2023-03-09 16:29:58 -08:00
|
|
|
version = "0.3"
|
2021-12-16 17:32:50 -08:00
|
|
|
features = ["pre-zip-212"]
|
2019-05-04 09:47:18 -07:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2022-10-31 23:52:10 -07:00
|
|
|
chacha20poly1305 = "0.10"
|
2023-01-19 16:03:10 -08:00
|
|
|
criterion = "0.4"
|
2021-05-11 08:57:28 -07:00
|
|
|
proptest = "1.0.0"
|
2022-12-08 11:06:32 -08:00
|
|
|
assert_matches = "1.3.0"
|
2021-01-26 14:48:11 -08:00
|
|
|
rand_xorshift = "0.3"
|
2023-04-11 06:25:17 -07:00
|
|
|
orchard = { version = "0.4", default-features = false, features = ["test-dependencies"] }
|
2019-10-07 20:07:30 -07:00
|
|
|
|
2021-08-05 14:21:56 -07:00
|
|
|
[target.'cfg(unix)'.dev-dependencies]
|
2023-01-19 16:03:10 -08:00
|
|
|
pprof = { version = "0.11", features = ["criterion", "flamegraph"] } # MSRV 1.56
|
2023-02-16 10:06:24 -08:00
|
|
|
inferno = ">=0.11, <0.11.5" # MSRV 1.59
|
2019-10-07 20:07:30 -07:00
|
|
|
|
2019-07-31 08:20:13 -07:00
|
|
|
[features]
|
2023-03-20 08:31:12 -07:00
|
|
|
default = ["multicore"]
|
|
|
|
multicore = ["orchard/multicore"]
|
2022-10-31 23:52:10 -07:00
|
|
|
transparent-inputs = ["hdwallet", "ripemd", "secp256k1"]
|
2023-03-07 19:45:01 -08:00
|
|
|
temporary-zcashd = []
|
2021-10-01 14:20:01 -07:00
|
|
|
test-dependencies = ["proptest", "orchard/test-dependencies"]
|
2020-09-23 09:53:48 -07:00
|
|
|
zfuture = []
|
2019-07-31 08:20:13 -07:00
|
|
|
|
2021-08-05 14:39:36 -07:00
|
|
|
[lib]
|
|
|
|
bench = false
|
|
|
|
|
2020-09-09 14:25:56 -07:00
|
|
|
[[bench]]
|
|
|
|
name = "note_decryption"
|
|
|
|
harness = false
|
|
|
|
|
2019-12-19 14:11:11 -08:00
|
|
|
[[bench]]
|
|
|
|
name = "pedersen_hash"
|
|
|
|
harness = false
|
|
|
|
|
2019-10-07 20:07:30 -07:00
|
|
|
[badges]
|
|
|
|
maintenance = { status = "actively-developed" }
|