Update documentation

This commit is contained in:
therealyingtong 2020-09-13 12:31:29 +08:00
parent 229747e118
commit 417174898e
No known key found for this signature in database
GPG Key ID: 179F32A1503D607E
2 changed files with 5 additions and 4 deletions

View File

@ -23,13 +23,14 @@ pub struct OpeningProof<C: CurveAffine> {
z2: C::Scalar,
}
/// TODO: documentation
/// An accumulator instance consisting of an evaluation claim and a proof.
#[derive(Debug, Clone)]
pub struct Accumulator<C: CurveAffine> {
/// TODO: documentation
/// The claimed output of the linear-time polycommit opening protocol
pub g: C,
/// TODO: documentation
/// A vector of 128-bit challenges sampled by the verifier, to be used in
/// computing g.
pub challenges_sq_packed: Vec<Challenge>,
}

View File

@ -138,7 +138,7 @@ impl<C: CurveAffine> OpeningProof<C> {
// delta
msm.add_term(Field::one(), self.delta);
// z2
// - [z2] H
msm.add_to_h(-self.z2);
let guard = Guard {