File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ pub trait PCCommitterKey: Clone + core::fmt::Debug {
2929/// Defines the minimal interface of verifier keys for any polynomial
3030/// commitment scheme.
3131pub trait PCVerifierKey : Clone + core:: fmt:: Debug {
32+ /// The prepared version of the key
33+ type PreparedKey ;
34+
3235 /// Outputs the maximum degree supported by the universal parameters
3336 /// `Self` was derived from.
3437 fn max_degree ( & self ) -> usize ;
@@ -39,9 +42,9 @@ pub trait PCVerifierKey: Clone + core::fmt::Debug {
3942
4043/// Defines the minimal interface of prepared verifier keys for any polynomial
4144/// commitment scheme.
42- pub trait PCPreparedVerifierKey < UNPREPARED : PCVerifierKey > {
45+ pub trait PCPreparedVerifierKey < VK : PCVerifierKey > {
4346 /// prepare
44- fn prepare ( vk : & UNPREPARED ) -> Self ;
47+ fn prepare ( vk : & VK ) -> Self ;
4548}
4649
4750/// Defines the minimal interface of commitments for any polynomial
@@ -59,9 +62,9 @@ pub trait PCCommitment: Clone + ark_ff::ToBytes {
5962
6063/// Defines the minimal interface of prepared commitments for any polynomial
6164/// commitment scheme.
62- pub trait PCPreparedCommitment < UNPREPARED : PCCommitment > : Clone {
65+ pub trait PCPreparedCommitment < C : PCCommitment > : Clone {
6366 /// prepare
64- fn prepare ( comm : & UNPREPARED ) -> Self ;
67+ fn prepare ( comm : & C ) -> Self ;
6568}
6669
6770/// Defines the minimal interface of commitment randomness for any polynomial
You can’t perform that action at this time.
0 commit comments