Skip to content

Commit dd448ea

Browse files
committed
small tidy up
1 parent 5271f40 commit dd448ea

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/data_structures.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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.
3131
pub 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

0 commit comments

Comments
 (0)