Remove extra Sum impl

This commit is contained in:
Deirdre Connolly 2020-10-05 23:28:44 -04:00 committed by Deirdre Connolly
parent cc44711204
commit 8b8ef6dc4d
1 changed files with 0 additions and 12 deletions

View File

@ -221,18 +221,6 @@ impl std::iter::Sum for ValueCommitment {
}
}
impl<'a> std::iter::Sum<&'a ValueCommitment> for ValueCommitment {
fn sum<I>(iter: I) -> Self
where
I: Iterator<Item = &'a Self>,
{
iter.fold(
ValueCommitment(jubjub::AffinePoint::identity()),
std::ops::Add::add,
)
}
}
/// LEBS2OSP256(repr_J(cv))
///
/// https://zips.z.cash/protocol/protocol.pdf#spendencoding