Skip to content

Commit

Permalink
Don't update private key shares directly at the PVSS level
Browse files Browse the repository at this point in the history
  • Loading branch information
cygnusv committed Apr 2, 2024
1 parent 819bcaa commit 2bf482e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions ferveo/src/pvss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,18 +373,6 @@ impl<E: Pairing, T: Aggregate> PubliclyVerifiableSS<E, T> {
)
}

// TODO: Consider deprecating to use PrivateKeyShare method directly
pub fn create_updated_private_key_share(
&self,
validator_keypair: &Keypair<E>,
share_index: u32,
share_updates: &[ShareUpdate<E>],
) -> Result<UpdatedPrivateKeyShare<E>> {
// Retrieve the private key share and apply the updates
Ok(self
.decrypt_private_key_share(validator_keypair, share_index)?
.create_updated_key_share(share_updates))
}
}

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)]
Expand Down

0 comments on commit 2bf482e

Please sign in to comment.