Remove extra Sum impl
This commit is contained in:
parent
cc44711204
commit
8b8ef6dc4d
|
|
@ -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))
|
/// LEBS2OSP256(repr_J(cv))
|
||||||
///
|
///
|
||||||
/// https://zips.z.cash/protocol/protocol.pdf#spendencoding
|
/// https://zips.z.cash/protocol/protocol.pdf#spendencoding
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue