Skip to content

Commit

Permalink
feat(backend) Add u32_backend feature to enable decaf377 u32 support
Browse files Browse the repository at this point in the history
  • Loading branch information
neithanmo authored and redshiftzero committed Apr 19, 2024
1 parent df7aa3d commit 704ecc5
Showing 1 changed file with 21 additions and 17 deletions.
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"]

0 comments on commit 704ecc5

Please sign in to comment.