Fix formatting.

This commit is contained in:
Peter van Nostrand 2018-06-21 13:06:48 -04:00 committed by Vladimir Komendantskiy
parent 5bf57d5d1d
commit 1c3afe85eb
1 changed files with 4 additions and 4 deletions

8
mod.rs
View File

@ -299,11 +299,11 @@ impl<E: Engine> SecretKeySet<E> {
/// Returns the `i`-th secret key share.
pub fn secret_key_share<T>(&self, i: T) -> ClearOnDrop<Box<SecretKey<E>>>
where
T: Into<<E::Fr as PrimeField>::Repr>
T: Into<<E::Fr as PrimeField>::Repr>,
{
ClearOnDrop::new(Box::new(
SecretKey(self.poly.evaluate(from_repr_plus_1::<E::Fr>(i.into())))
))
ClearOnDrop::new(Box::new(SecretKey(
self.poly.evaluate(from_repr_plus_1::<E::Fr>(i.into())),
)))
}
/// Returns the corresponding public key set. That information can be shared publicly.