Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ digest = { version = "0.9.0", default-features = false, optional = true }

[dev-dependencies]
ark-pallas = { version = "^0.2.0", features = [ "r1cs", "curve" ] }
ark-bls12-377 = { version = "^0.2.0", default-features = false, features = [ "curve", "r1cs" ] }
tracing = { version = "0.1", default-features = false }
tracing-subscriber = { version = "0.2", default-features = false, features = [ "registry" ] }

Expand All @@ -59,6 +60,7 @@ std = [ "ark-crypto-primitives/std", "ark-ec/std", "ark-ff/std", "ark-nonnative-
impl = []
hp-as = [ "impl", "ark-poly" ]
ipa-pc-as = [ "impl", "ark-poly", "ark-poly-commit", "blake2" ]
marlin-pc-as = [ "impl", "ark-poly", "ark-poly-commit" ]
r1cs-nark-as = [ "impl", "blake2", "digest", "hp-as", "r1cs" ]
trivial-pc-as = [ "impl", "ark-poly", "ark-poly-commit", "blake2" ]

Expand Down
14 changes: 12 additions & 2 deletions src/data_structures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,20 @@ use ark_std::io::{Read, Write};
use ark_std::rand::RngCore;

// Useful type alias for implementations.
#[cfg(feature = "impl")]
#[cfg(any(
feature = "hp-as",
feature = "ipa-pc-as",
feature = "r1cs-nark-as",
feature = "trivial-pc-as"
))]
use {ark_ec::AffineCurve, ark_ff::Field};

#[cfg(feature = "impl")]
#[cfg(any(
feature = "hp-as",
feature = "ipa-pc-as",
feature = "r1cs-nark-as",
feature = "trivial-pc-as"
))]
pub(crate) type ConstraintF<G> = <<G as AffineCurve>::BaseField as Field>::BasePrimeField;

/// A pair consisting of references to an instance and witness.
Expand Down
8 changes: 8 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ pub mod hp_as;
#[cfg_attr(docsrs, doc(cfg(feature = "ipa-pc-as")))]
pub mod ipa_pc_as;

/// An accumulation scheme based on bilinear groups.
/// The construction is described in detail in [\[BCMS20\]][\[BCMS20\]].
///
/// [\[BCMS20\]]: https://eprint.iacr.org/2020/499
#[cfg(feature = "marlin-pc-as")]
#[cfg_attr(docsrs, doc(cfg(feature = "marlin-pc-as")))]
pub mod marlin_pc_as;

/// An accumulation scheme for a NARK for R1CS.
/// The construction is described in detail in [\[BCLMS20\]][bclms20].
///
Expand Down
Loading