-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move crypto-primitives to its own crate dir * create new crate "macros" * Macro derive working with tests * rename to Absorb, clean up and format * add test for struct with no named fields, panics now * implement `Absorb` macro for structs with unnamed fields too * inline variable * re-export Absorb derive * workspace inheritance * minimize the diff * add licenses to each crate * change generic type's name to `FieldType`. `F` is often used in caller * add tests with generic type `F` * replace licenses with symlinks
- Loading branch information
Showing
64 changed files
with
294 additions
and
80 deletions.
There are no files selected for viewing
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,90 @@ | ||
[package] | ||
name = "ark-crypto-primitives" | ||
description.workspace = true | ||
documentation.workspace = true | ||
keywords.workspace = true | ||
version.workspace = true | ||
authors.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
categories.workspace = true | ||
include.workspace = true | ||
license.workspace = true | ||
edition.workspace = true | ||
|
||
################################# Dependencies ################################ | ||
|
||
[dependencies] | ||
ark-crypto-primitives-macros = { version = "^0.4.0", path = "../macros" } | ||
|
||
ark-ff = { version = "^0.4.0", default-features = false } | ||
ark-ec = { version = "^0.4.0", default-features = false } | ||
ark-std = { version = "^0.4.0", default-features = false } | ||
ark-relations = { version = "^0.4.0", default-features = false } | ||
ark-serialize = { version = "^0.4.0", default-features = false, features = [ "derive" ] } | ||
|
||
blake2 = { version = "0.10", default-features = false } | ||
sha2 = { version = "0.10", default-features = false } | ||
digest = { version = "0.10", default-features = false } | ||
|
||
ark-r1cs-std = { version = "^0.4.0", optional = true, default-features = false } | ||
ark-snark = { version = "^0.4.0", default-features = false } | ||
|
||
rayon = { version = "1.0", optional = true } | ||
derivative = { version = "2.0", features = ["use_core"] } | ||
tracing = { version = "0.1", default-features = false, features = [ "attributes" ], optional = true } | ||
|
||
[features] | ||
default = ["std"] | ||
std = [ "ark-ff/std", "ark-ec/std", "ark-std/std", "ark-relations/std" ] | ||
print-trace = [ "ark-std/print-trace" ] | ||
parallel = [ "std", "rayon", "ark-ec/parallel", "ark-std/parallel", "ark-ff/parallel" ] | ||
r1cs = [ "ark-r1cs-std", "tracing" ] | ||
crh = [ "sponge" ] | ||
sponge = [] | ||
commitment = ["crh"] | ||
merkle_tree = ["crh"] | ||
encryption = [] | ||
prf = [] | ||
snark = [] | ||
signature = [] | ||
|
||
[dev-dependencies] | ||
ark-ed-on-bls12-377 = { version = "^0.4.0", default-features = false } | ||
ark-ed-on-bls12-381 = { version = "^0.4.0", default-features = false, features = [ "r1cs" ] } | ||
ark-bls12-377 = { version = "^0.4.0", default-features = false, features = [ "curve", "r1cs" ] } | ||
ark-mnt4-298 = { version = "^0.4.0", default-features = false, features = [ "curve", "r1cs" ] } | ||
ark-mnt6-298 = { version = "^0.4.0", default-features = false, features = [ "r1cs" ] } | ||
criterion = { version = "0.4" } | ||
|
||
################################# Benchmarks ################################## | ||
|
||
[[bench]] | ||
name = "pedersen_crh" | ||
path = "benches/crh.rs" | ||
harness = false | ||
required-features = [ "crh" ] | ||
|
||
[[bench]] | ||
name = "pedersen_comm" | ||
path = "benches/comm.rs" | ||
harness = false | ||
required-features = [ "commitment" ] | ||
|
||
[[bench]] | ||
name = "blake2s_prf" | ||
path = "benches/prf.rs" | ||
harness = false | ||
required-features = [ "prf" ] | ||
|
||
[[bench]] | ||
name = "schnorr_sig" | ||
path = "benches/signature.rs" | ||
harness = false | ||
required-features = [ "signature" ] | ||
|
||
[[bench]] | ||
name = "merkle_tree" | ||
path = "benches/merkle_tree.rs" | ||
harness = false | ||
required-features = [ "merkle_tree" ] |
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 @@ | ||
LICENSE-APACHE |
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 @@ | ||
LICENSE-MIT |
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.
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.
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.
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.
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.
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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
name = "ark-crypto-primitives-macros" | ||
description.workspace = true | ||
documentation.workspace = true | ||
version.workspace = true | ||
authors.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
categories.workspace = true | ||
include.workspace = true | ||
license.workspace = true | ||
edition.workspace = true | ||
publish = false | ||
|
||
[dependencies] | ||
quote = { version = "1.0" } | ||
syn = { version = "2.0" } | ||
proc-macro2 = { version = "1.0" } | ||
|
||
[lib] | ||
proc-macro = true |
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 @@ | ||
LICENSE-APACHE |
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 @@ | ||
LICENSE-MIT |
Oops, something went wrong.