Fix some comments.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
9e0041c497
commit
74abb88dce
|
@ -539,7 +539,7 @@ impl MontgomeryPoint {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Performs an affine point addition, not defined for
|
/// 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>
|
pub fn add<CS>(&self, mut cs: CS, other: &Self) -> Result<Self, SynthesisError>
|
||||||
where
|
where
|
||||||
CS: ConstraintSystem<bls12_381::Scalar>,
|
CS: ConstraintSystem<bls12_381::Scalar>,
|
||||||
|
|
|
@ -153,9 +153,9 @@ impl Circuit<bls12_381::Scalar> for Spend {
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
// NB: We don't ensure that the bit representation of nsk
|
// NB: We don't ensure that the bit representation of nsk
|
||||||
// is "in the field" (Fs) because it's not used except to
|
// is "in the field" (jubjub::Fr) because it's not used
|
||||||
// demonstrate the prover knows it. If they know a
|
// except to demonstrate the prover knows it. If they know
|
||||||
// congruency then that's equivalent.
|
// a congruency then that's equivalent.
|
||||||
|
|
||||||
// Compute nk = [nsk] ProvingPublicKey
|
// Compute nk = [nsk] ProvingPublicKey
|
||||||
nk = ecc::fixed_base_multiplication(
|
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,
|
// Only the u-coordinate of the output is revealed,
|
||||||
// since we know it is prime order, and we know that
|
// since we know it is prime order, and we know that
|
||||||
// the x-coordinate is an injective encoding for
|
// the u-coordinate is an injective encoding for
|
||||||
// prime-order elements.
|
// elements in the prime-order subgroup.
|
||||||
cm.get_u().inputize(cs.namespace(|| "commitment"))?;
|
cm.get_u().inputize(cs.namespace(|| "commitment"))?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in New Issue