Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(backend) Add u32_backend feature to enable decaf377 u32 support #59

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 21 additions & 17 deletions poseidon377/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,43 @@
name = "poseidon377"
version = "1.0.0"
edition = "2018"
authors = ["Penumbra <[email protected]>", "redshiftzero <[email protected]>"]
authors = [
"Penumbra <[email protected]>",
"redshiftzero <[email protected]>",
]
description = "An instantiation of the Poseidon hash for use with decaf377."
license = "MIT OR Apache-2.0"
repository = "https://github.com/penumbra-zone/poseidon377"

[dependencies]
decaf377 = { version="0.9", default-features = false }
poseidon-parameters = { version="1.0", path = "../poseidon-parameters", default-features = false }
poseidon-permutation = { version="1.0", path = "../poseidon-permutation", default-features = false }
decaf377 = { version = "0.9", default-features = false }
poseidon-parameters = { version = "1.0", path = "../poseidon-parameters", default-features = false }
poseidon-permutation = { version = "1.0", path = "../poseidon-permutation", default-features = false }

ark-ff = { version = "0.4", default-features = false, optional=true }
ark-groth16 = { version = "0.4", default-features = false, optional=true }
ark-r1cs-std = {version = "0.4", default-features = false, optional=true }
ark-relations = { version="0.4", default-features = false, optional=true }
ark-snark = { version = "0.4", default-features = false, optional=true }
ark-ec = { version = "0.4", default_features = false, optional=true }
ark-std = { version = "0.4", default-features = false, optional=true }
ark-serialize = { version = "0.4", default_features = false, optional=true }
ark-ff = { version = "0.4", default-features = false, optional = true }
ark-groth16 = { version = "0.4", default-features = false, optional = true }
ark-r1cs-std = { version = "0.4", default-features = false, optional = true }
ark-relations = { version = "0.4", default-features = false, optional = true }
ark-snark = { version = "0.4", default-features = false, optional = true }
ark-ec = { version = "0.4", default_features = false, optional = true }
ark-std = { version = "0.4", default-features = false, optional = true }
ark-serialize = { version = "0.4", default_features = false, optional = true }

[features]
default = ["arkworks"]
alloc = ["decaf377/alloc"]
arkworks = ["std",
arkworks = [
"std",
"decaf377/arkworks",
"ark-ff/std",
"ark-groth16/std",
"ark-r1cs-std",
"ark-relations/std",
"ark-std/std",
"ark-ec/std",
"ark-serialize/std"]
std = [
"alloc",
"ark-serialize/std",
]
std = ["alloc"]
r1cs = [
"arkworks",
"ark-groth16",
Expand All @@ -48,11 +51,12 @@ r1cs = [
"ark-ec",
"ark-serialize",
]
parallel = [
parallel = [
"ark-ff/parallel",
"ark-groth16/parallel",
"ark-r1cs-std/parallel",
"decaf377/parallel",
"ark-std/parallel",
"ark-ec/parallel",
]
u32_backend = ["decaf377/u32_backend"]
Loading