-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure the project removing dependencies.
Move out of the core project the following plugins: - anemoi hash - poseidon hash - pow challenge generation
- Loading branch information
Showing
44 changed files
with
175 additions
and
146 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[package] | ||
name = "nimue-anemoi" | ||
version = "0.1.0" | ||
edition = "2021" | ||
license = "MIT/Apache-2.0" | ||
|
||
[dependencies] | ||
ark-ff = "^0.4.2" | ||
nimue = { version = "0.1.0", path = "../nimue", features = ["ark"] } | ||
zeroize = "1.8.1" | ||
anemoi = {git = "https://github.com/mmaker/anemoi", features=["bls12_381"]} | ||
ark-bls12-381 = "^0.4.0" | ||
arrayvec = "0.7.6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[package] | ||
name = "nimue-poseidon" | ||
version = "0.1.0" | ||
edition = "2021" | ||
license = "MIT/Apache-2.0" | ||
|
||
[dependencies] | ||
nimue = { path = "../nimue", features = ["ark"]} | ||
ark-ff = "^0.4.2" | ||
zeroize = "1.8.1" | ||
ark-bls12-381 = "^0.4.0" | ||
|
||
[dev-dependencies] | ||
ark-bls12-381 = "^0.4.0" |
File renamed without changes.
2 changes: 0 additions & 2 deletions
2
src/plugins/ark/poseidon/bls12_381/mod.rs → nimue-poseidon/src/bls12_381/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
use crate::plugins::ark::poseidon; | ||
|
||
mod fr_3_2; | ||
|
||
poseidon_sponge!(PoseidonBls12381Fr3_1, fr_3_2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[package] | ||
name = "nimue-pow" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = [ | ||
"Giacomo Fenzi <giacomofenzi@outlook.com>", | ||
"Remco Bloemen <remco@wicked.ventures>" | ||
] | ||
|
||
[dependencies] | ||
nimue = { path = "../nimue" } | ||
blake3 = "1.5.4" | ||
keccak = { version = "0.1.4"} | ||
bytemuck = "1.17.1" | ||
rayon = { version = "1.10.0", optional = true } | ||
|
||
[features] | ||
default = ["parallel"] | ||
parallel = ["dep:rayon"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
[package] | ||
name = "nimue" | ||
version = "0.1.0" | ||
authors = ["Michele Orrù <m@orru.net>"] | ||
description = "A library for Fiat-Shamir transcripts." | ||
edition = "2021" | ||
license = "MIT/Apache-2.0" | ||
|
||
[dependencies] | ||
zeroize = { version = "1.6.0", features = ["zeroize_derive"] } | ||
rand = { version = "0.8.5", features = ["getrandom"] } | ||
digest = "0.10.7" | ||
generic-array = "0.14.7" | ||
# used as default hasher for the prover | ||
keccak = { version = "0.1.4"} | ||
log = "0.4.20" | ||
# optional dependencies | ||
ark-ff = { version = "0.4.0", optional = true } | ||
ark-ec = { version = "0.4.0", optional = true } | ||
ark-serialize = { version = "0.4.2", optional = true, features = ["std"] } | ||
group = { version = "0.13.0", optional = true } | ||
ark-bls12-381 = { version = "0.4.0", optional = true } | ||
rayon = { version = "1.10.0", optional = true } | ||
|
||
[features] | ||
default = ["parallel"] | ||
parallel = ["dep:rayon"] | ||
ark = ["dep:ark-ff", "dep:ark-ec", "dep:ark-serialize"] | ||
group = ["dep:group"] | ||
ark-bls12-381 = ["ark", "dep:ark-bls12-381"] | ||
rayon = ["dep:rayon"] | ||
asm = ["keccak/asm", "keccak/simd"] | ||
|
||
[dev-dependencies] | ||
ark-std = "0.4.0" | ||
sha2 = "0.10.7" | ||
blake2 = "0.10.6" | ||
hex = "0.4.3" | ||
# test curve25519 compatibility | ||
curve25519-dalek = { version = "4.0.0", features = ["group"] } | ||
ark-curve25519 = "0.4.0" | ||
# test algebraic hashers | ||
bls12_381 = "0.8.0" | ||
anyhow = { version = "1.0.75", features = ["backtrace"] } | ||
ark-pallas = { version = "0.4.0", features = ["std"] } | ||
pallas = "0.22.0" | ||
pasta_curves = "0.5.1" | ||
ark-vesta = { version = "0.4.0", features = ["std"] } | ||
|
||
[package.metadata.docs.rs] | ||
rustdoc-args = ["--html-in-header", "../doc/katex-header.html", "--cfg", "docsrs"] | ||
features = ["ark", "group"] | ||
|
||
[[example]] | ||
name = "schnorr" | ||
required-features = ["ark"] | ||
|
||
[[example]] | ||
name = "schnorr_algebraic_hash" | ||
required-features = ["ark", "ark-bls112-381"] | ||
|
||
[[example]] | ||
name = "bulletproof" | ||
required-features = ["ark"] |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.