@@ -68,9 +68,13 @@ pub type RingProver<S> = ring_proof::ring_prover::RingProver<BaseField<S>, Pcs<S
6868pub type RingVerifier < S > =
6969 ring_proof:: ring_verifier:: RingVerifier < BaseField < S > , Pcs < S > , CurveConfig < S > > ;
7070
71- /// Actual ring proof.
71+ /// Raw ring proof.
72+ ///
73+ /// This is the primitive ring proof used in conjunction with Pedersen proof to
74+ /// construct the actual ring vrf proof [`Proof`].
7275pub type RingProof < S > = ring_proof:: RingProof < BaseField < S > , Pcs < S > > ;
7376
77+ /// Define type aliases for the given ring suite.
7478#[ macro_export]
7579macro_rules! ring_suite_types {
7680 ( $suite: ident) => {
@@ -87,7 +91,9 @@ macro_rules! ring_suite_types {
8791 #[ allow( dead_code) ]
8892 pub type RingVerifier = $crate:: ring:: RingVerifier <$suite>;
8993 #[ allow( dead_code) ]
90- pub type RingProof = $crate:: ring:: Proof <$suite>;
94+ pub type RingProof = $crate:: ring:: RingProof <$suite>;
95+ #[ allow( dead_code) ]
96+ pub type Proof = $crate:: ring:: Proof <$suite>;
9197 } ;
9298}
9399
@@ -105,13 +111,14 @@ where
105111 pub ring_proof : RingProof < S > ,
106112}
107113
114+ /// Ring VRF prover.
108115pub trait Prover < S : RingSuite >
109116where
110117 BaseField < S > : ark_ff:: PrimeField ,
111118 CurveConfig < S > : TECurveConfig ,
112119 AffinePoint < S > : TEMapping < CurveConfig < S > > ,
113120{
114- /// Generate a proof for the given input/output and user additional data.
121+ /// Generate a proof for the given input/output and additional data.
115122 fn prove (
116123 & self ,
117124 input : Input < S > ,
@@ -145,6 +152,7 @@ where
145152 }
146153}
147154
155+ /// Ring VRF verifier.
148156pub trait Verifier < S : RingSuite >
149157where
150158 BaseField < S > : ark_ff:: PrimeField ,
0 commit comments