Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
driemworks authored and juangirini committed May 22, 2024
1 parent d5043ab commit 07d046e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
18 changes: 17 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 3 additions & 14 deletions substrate/client/keystore/src/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,9 @@ impl Keystore for LocalKeystore {
Ok(sig)
}

/// Run the async committee secret sharing `recovery` algorithm using a locally stored bls377 keypair
/// and use the resulting keypair to sign the input message
///
fn acss_recover(
&self,
key_type: KeyTypeId,
Expand All @@ -429,20 +432,6 @@ impl Keystore for LocalKeystore {
if let Some(Some(etf_pair)) = self.0.read()
.key_pair_by_type::<bls377::Pair>(public, key_type)?
.map(|pair| pair.acss_recover(pok_bytes, threshold)) {
// .map(|pair| {
// if let Ok(pok) = BatchPoK::<<TinyBLS377 as EngineBLS>::PublicKeyGroup>::deserialize_compressed(&pok_bytes[..]) {
// let sk = ETFKeypair(pair.0.into_vartime());
// if let Ok(recovered) = sk.recover(pok, threshold) {
// let secret = w3f_bls::SecretKeyVT(recovered.0).into_split_dirty();
// let public = secret.into_public();
// return Some(bls::Pair(w3f_bls::Keypair {
// secret, public,
// }));
// }
// }
// None
// }) {
// "IBE.Extract" Q = s*H(message) + DLEQ Proof
let extract = etf_pair.sign(&message);
return Ok(extract);
}
Expand Down

0 comments on commit 07d046e

Please sign in to comment.