[package]
name = "dusk-poseidon"
version = "0.20.0-pre.0"
authors = [
"zer0 <matteo@dusk.network>", "vlopes11 <victor@dusk.network>", "CPerezz <carlos@dusk.network>", "Kristoffer Ström <kristoffer@dusk.network>"
]
edition = "2018"
description ="Implementation of Poseidon hash algorithm over the Bls12-381 Scalar field."
categories = ["algorithms", "cryptography", "no-std", "wasm"]
keywords = ["cryptography", "zero-knowledge", "crypto"]
license = "MPL-2.0"
repository = "https://github.com/dusk-network/poseidon252"
[dependencies]
dusk-bls12_381 = {version = "0.6", default-features = false}
dusk-jubjub = {version = "0.8", default-features = false}
dusk-bytes = "0.1"
dusk-hades = { version = "0.15.0-pre", default-features = false }
canonical = {version = "0.5", optional = true}
canonical_derive = {version = "0.5", optional = true}
microkelvin = {version = "0.6", optional = true}
nstack = {version = "0.7", optional = true}
dusk-plonk = {version="0.7.0-pre", default-features = false, optional = true}
anyhow = { version = "1.0", optional = true }
thiserror = { version = "1.0", optional = true }
[dev-dependencies]
canonical_host = "0.5"
rand = "0.7"
criterion = "0.3"
[features]
default = ["std"]
alloc = []
std = [
"dusk-hades/default",
"dusk-bls12_381/default",
"dusk-jubjub/std",
"dusk-plonk",
"anyhow",
"thiserror"
]
canon = [
"dusk-bls12_381/canon",
"dusk-jubjub/canon",
"canonical",
"canonical_derive",
"microkelvin",
"nstack",
"alloc"
]
canon_host = [
"canon",
"canonical/host"
]
[profile.dev]
opt-level = 3
debug = false
rpath = false
lto = false
debug-assertions = false
codegen-units = 16
panic = 'unwind'
incremental = false
overflow-checks = false
[profile.release]
debug = false
panic = 'abort'
lto = true
incremental = false
codegen-units = 1