Skip to content
Snippets Groups Projects
Verified Commit b550d712 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

remove some pub

parent fbd503c6
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ use crate::{
#[derive(Debug, Default, Clone, PartialEq, CanonicalSerialize, CanonicalDeserialize)]
pub struct Block<F: PrimeField, G: CurveGroup<ScalarField = F>> {
pub shard: fec::Shard<F>,
pub commit: Vec<Commitment<F, G>>,
commit: Vec<Commitment<F, G>>,
}
impl<F: PrimeField, G: CurveGroup<ScalarField = F>> std::fmt::Display for Block<F, G> {
......@@ -89,7 +89,7 @@ impl<F: PrimeField, G: CurveGroup<ScalarField = F>> std::fmt::Display for Block<
/// > - if `polynomials` has length `n`, then [`commit`] will generate `n`
/// > commits.
#[allow(clippy::type_complexity)]
pub fn commit<F, G, P>(
fn commit<F, G, P>(
powers: &Powers<F, G>,
polynomials: &[P],
) -> Result<Vec<Commitment<F, G>>, KomodoError>
......
......@@ -118,7 +118,7 @@ fn throw_error(code: i32, message: &str) {
exit(code);
}
pub fn generate_random_powers<F, G, P, R>(
fn generate_random_powers<F, G, P, R>(
n: usize,
powers_dir: &Path,
powers_filename: Option<&str>,
......@@ -139,7 +139,7 @@ where
Ok(())
}
pub fn verify_blocks<F, G, P>(
fn verify_blocks<F, G, P>(
blocks: &[(String, Block<F, G>)],
powers: Powers<F, G>,
) -> Result<(), KomodoError>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment