Skip to content

Commit

Permalink
Some things don't need to be public
Browse files Browse the repository at this point in the history
  • Loading branch information
davxy committed Jul 23, 2024
1 parent 037330e commit 3d741fa
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/ring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,19 @@ pub trait RingSuite: PedersenSuite {
/// Polinomial Commitment Scheme (KZG)
type Pcs<S> = ring_proof::pcs::kzg::KZG<<S as RingSuite>::Pairing>;

/// PCS setup parameters.
/// Single PCS commitment.
type PcsCommitment<S> = ring_proof::pcs::kzg::commitment::KzgCommitment<<S as RingSuite>::Pairing>;

/// KZG "Polynomial Commitment Scheme" (PCS) parameters.
///
/// Basically the powers of tau SRS.
/// Basically powers of tau SRS.
pub type PcsParams<S> = ring_proof::pcs::kzg::urs::URS<<S as RingSuite>::Pairing>;

/// Polynomial Interactive Oracle Proof (IOP) parameters.
/// Polynomial "Interactive Oracle Proof" (IOP) parameters.
///
/// Basically all the application specific parameters required to construct and
/// verify the ring proof.
pub type PiopParams<S> = ring_proof::PiopParams<BaseField<S>, CurveConfig<S>>;

/// Single PCS commitment.
pub type PcsCommitment<S> =
ring_proof::pcs::kzg::commitment::KzgCommitment<<S as RingSuite>::Pairing>;
type PiopParams<S> = ring_proof::PiopParams<BaseField<S>, CurveConfig<S>>;

/// Ring keys commitment.
pub type RingCommitment<S> = ring_proof::FixedColumnsCommitted<BaseField<S>, PcsCommitment<S>>;
Expand Down Expand Up @@ -145,8 +144,8 @@ where
BaseField<S>: ark_ff::PrimeField,
CurveConfig<S>: SWCurveConfig + Clone,
{
pub pcs_params: PcsParams<S>,
pub piop_params: PiopParams<S>,
pcs_params: PcsParams<S>,
piop_params: PiopParams<S>,
}

#[inline(always)]
Expand Down Expand Up @@ -236,7 +235,7 @@ where

/// Construct `VerifierKey` instance for the ring previously committed.
///
/// The `RingCommitment` can be obtained via the `VerifierKey::commitment()` method.
/// The `RingCommitment` instance can be obtained via the `VerifierKey::commitment()` method.
///
/// This allows to quickly reconstruct the verifier key without having to recompute the
/// keys commitment.
Expand Down

0 comments on commit 3d741fa

Please sign in to comment.