pub trait LinCodeParametersInfo<C, H>{
// Required methods
fn sec_param(&self) -> usize;
fn distance(&self) -> (usize, usize);
fn check_well_formedness(&self) -> bool;
fn compute_dimensions(&self, n: usize) -> (usize, usize);
fn leaf_hash_param(
&self,
) -> &<<C as Config>::LeafHash as CRHScheme>::Parameters;
fn two_to_one_hash_param(
&self,
) -> &<<C as Config>::TwoToOneHash as TwoToOneCRHScheme>::Parameters;
fn col_hash_params(&self) -> &H::Parameters;
}
Expand description
For linear code PC schemes, the universal paramters, committer key and verifier key are all the same. This trait abstracts the common information contained in these.
Required Methods§
Sourcefn check_well_formedness(&self) -> bool
fn check_well_formedness(&self) -> bool
See whether there should be a well-formedness check.
Sourcefn compute_dimensions(&self, n: usize) -> (usize, usize)
fn compute_dimensions(&self, n: usize) -> (usize, usize)
Compute the dimensions of the coefficient matrix.
Sourcefn leaf_hash_param(&self) -> &<<C as Config>::LeafHash as CRHScheme>::Parameters
fn leaf_hash_param(&self) -> &<<C as Config>::LeafHash as CRHScheme>::Parameters
Get the hash parameters for obtaining leaf digest from leaf value.
Sourcefn two_to_one_hash_param(
&self,
) -> &<<C as Config>::TwoToOneHash as TwoToOneCRHScheme>::Parameters
fn two_to_one_hash_param( &self, ) -> &<<C as Config>::TwoToOneHash as TwoToOneCRHScheme>::Parameters
Get the parameters for hashing nodes in the merkle tree.
Sourcefn col_hash_params(&self) -> &H::Parameters
fn col_hash_params(&self) -> &H::Parameters
Get the parameters for hashing a vector of values, representing a column of the coefficient matrix, into a leaf value.