Fix formatting.
This commit is contained in:
parent
5bf57d5d1d
commit
1c3afe85eb
8
mod.rs
8
mod.rs
|
@ -299,11 +299,11 @@ impl<E: Engine> SecretKeySet<E> {
|
||||||
/// Returns the `i`-th secret key share.
|
/// Returns the `i`-th secret key share.
|
||||||
pub fn secret_key_share<T>(&self, i: T) -> ClearOnDrop<Box<SecretKey<E>>>
|
pub fn secret_key_share<T>(&self, i: T) -> ClearOnDrop<Box<SecretKey<E>>>
|
||||||
where
|
where
|
||||||
T: Into<<E::Fr as PrimeField>::Repr>
|
T: Into<<E::Fr as PrimeField>::Repr>,
|
||||||
{
|
{
|
||||||
ClearOnDrop::new(Box::new(
|
ClearOnDrop::new(Box::new(SecretKey(
|
||||||
SecretKey(self.poly.evaluate(from_repr_plus_1::<E::Fr>(i.into())))
|
self.poly.evaluate(from_repr_plus_1::<E::Fr>(i.into())),
|
||||||
))
|
)))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the corresponding public key set. That information can be shared publicly.
|
/// Returns the corresponding public key set. That information can be shared publicly.
|
||||||
|
|
Loading…
Reference in New Issue