Fix some comments.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2020-08-22 00:56:17 +01:00
parent 9e0041c497
commit 74abb88dce
2 changed files with 6 additions and 6 deletions

View File

@ -539,7 +539,7 @@ impl MontgomeryPoint {
}
/// Performs an affine point addition, not defined for
/// coincident points.
/// points with the same x-coordinate.
pub fn add<CS>(&self, mut cs: CS, other: &Self) -> Result<Self, SynthesisError>
where
CS: ConstraintSystem<bls12_381::Scalar>,

View File

@ -153,9 +153,9 @@ impl Circuit<bls12_381::Scalar> for Spend {
)?;
// NB: We don't ensure that the bit representation of nsk
// is "in the field" (Fs) because it's not used except to
// demonstrate the prover knows it. If they know a
// congruency then that's equivalent.
// is "in the field" (jubjub::Fr) because it's not used
// except to demonstrate the prover knows it. If they know
// a congruency then that's equivalent.
// Compute nk = [nsk] ProvingPublicKey
nk = ecc::fixed_base_multiplication(
@ -501,8 +501,8 @@ impl Circuit<bls12_381::Scalar> for Output {
// Only the u-coordinate of the output is revealed,
// since we know it is prime order, and we know that
// the x-coordinate is an injective encoding for
// prime-order elements.
// the u-coordinate is an injective encoding for
// elements in the prime-order subgroup.
cm.get_u().inputize(cs.namespace(|| "commitment"))?;
Ok(())