[package]
edition = "2021"
name = "darkpool-crypto"
version = "0.1.0"
authors = ["Hisoka IO"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure cryptographic primitives for the DarkPool protocol (BJJ, Poseidon2, AES, KDF)"
readme = false
license = "Apache-2.0"
repository = "https://github.com/hisoka-io/nox"
[lib]
name = "darkpool_crypto"
path = "src/lib.rs"
[[test]]
name = "crypto_realism"
path = "tests/crypto_realism.rs"
[[test]]
name = "poseidon_parity"
path = "tests/poseidon_parity.rs"
[[bench]]
name = "crypto_bench"
path = "benches/crypto_bench.rs"
harness = false
[dependencies.aes]
version = "0.8"
[dependencies.ark-bn254]
version = "0.5.0"
[dependencies.ark-ed-on-bn254]
version = "0.5.0"
[dependencies.ark-ff]
version = "0.5.0"
features = ["asm"]
[dependencies.ark-std]
version = "0.5.0"
[dependencies.cbc]
version = "0.1"
[dependencies.cipher]
version = "0.4"
[dependencies.ethers-core]
version = "2.0"
[dependencies.hex]
version = "0.4"
[dependencies.num-bigint]
version = "0.4"
features = ["serde"]
[dependencies.rand]
version = "0.8"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.sha2]
version = "0.10"
features = ["asm"]
[dependencies.subtle]
version = "2.6"
[dependencies.taceo-poseidon2]
version = "0.2.0"
[dependencies.thiserror]
version = "2.0.17"
[dependencies.zeroize]
version = "1.8"
[dev-dependencies.criterion]
version = "0.5"
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_link_with_quotes = "allow"
expect_used = "warn"
items_after_statements = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
needless_pass_by_value = "allow"
panic = "warn"
return_self_not_must_use = "allow"
similar_names = "allow"
too_many_lines = "allow"
unnecessary_wraps = "allow"
unused_async = "allow"
unused_self = "allow"
unwrap_used = "warn"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1