Struct ark_ec::scalar_mul::variable_base::stream_pippenger::ChunkedPippenger
source · pub struct ChunkedPippenger<G: VariableBaseMSM> { /* private fields */ }
Expand description
Struct for the chunked Pippenger algorithm.
Implementations§
source§impl<G: VariableBaseMSM> ChunkedPippenger<G>
impl<G: VariableBaseMSM> ChunkedPippenger<G>
sourcepub fn new(max_msm_buffer: usize) -> Self
pub fn new(max_msm_buffer: usize) -> Self
Initialize a chunked Pippenger instance with default parameters.
sourcepub fn with_size(buf_size: usize) -> Self
pub fn with_size(buf_size: usize) -> Self
Initialize a chunked Pippenger instance with the given buffer size.
sourcepub fn add<B, S>(&mut self, base: B, scalar: S)where
B: Borrow<G::MulBase>,
S: Borrow<<G::ScalarField as PrimeField>::BigInt>,
pub fn add<B, S>(&mut self, base: B, scalar: S)where B: Borrow<G::MulBase>, S: Borrow<<G::ScalarField as PrimeField>::BigInt>,
Add a new (base, scalar) pair into the instance.