MCPcopy Create free account
hub / github.com/arkworks-rs/poly-commit / powers

Method powers

poly-commit/src/marlin/marlin_pc/data_structures.rs:48–53  ·  view source on GitHub ↗

Obtain powers for the underlying KZG10 construction

(&'a self)

Source from the content-addressed store, hash-verified

46impl<E: Pairing> CommitterKey<E> {
47 /// Obtain powers for the underlying KZG10 construction
48 pub fn powers<'a>(&'a self) -> kzg10::Powers<'a, E> {
49 kzg10::Powers {
50 powers_of_g: self.powers.as_slice().into(),
51 powers_of_gamma_g: self.powers_of_gamma_g.as_slice().into(),
52 }
53 }
54
55 /// Obtain powers for committing to shifted polynomials.
56 pub fn shifted_powers<'a>(

Callers 2

commitMethod · 0.45
openMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected