pub struct PP {
pub disc: BigInt,
pub g: BinaryQF,
pub q: BigInt,
pub p: BigInt,
}Expand description
Polynomial commitment as given in the paper: Transparent SNARKs from DARK Compilers (https://eprint.iacr.org/2019/1229.pdf), subsection 4.2 and 4.3 The following algorithms are implemented: Setup: generates public parameters Commit: to commit to a polynomial Open: open and verify a commitment Encode: stand alone code to encode a polynomial as an integer Decode: converts integer to a unique polynomial Eval_prover: NI proof that y = f(z) for a committed polynomial f() Eval_verify: NI verifier for eval_proof.
Fields§
§disc: BigInt§g: BinaryQF§q: BigInt§p: BigIntTrait Implementations§
impl Eq for PP
impl StructuralPartialEq for PP
Auto Trait Implementations§
impl Freeze for PP
impl RefUnwindSafe for PP
impl Send for PP
impl Sync for PP
impl Unpin for PP
impl UnsafeUnpin for PP
impl UnwindSafe for PP
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more