cleanup some println! (#153)

This commit is contained in:
AntiochP 2017-10-03 12:47:07 -04:00 committed by Ignotus Peverell
parent 677d0a3a95
commit bc11d23908

View file

@ -120,14 +120,12 @@ impl Keychain {
.iter() .iter()
.filter_map(|k| self.derived_key(&k).ok()) .filter_map(|k| self.derived_key(&k).ok())
.collect(); .collect();
println!("pos_keys - {}", pos_keys.len());
let mut neg_keys: Vec<SecretKey> = blind_sum let mut neg_keys: Vec<SecretKey> = blind_sum
.negative_pubkeys .negative_pubkeys
.iter() .iter()
.filter_map(|k| self.derived_key(&k).ok()) .filter_map(|k| self.derived_key(&k).ok())
.collect(); .collect();
println!("neg_keys - {}", neg_keys.len());
pos_keys.extend(&blind_sum pos_keys.extend(&blind_sum
.positive_blinding_factors .positive_blinding_factors
@ -141,9 +139,6 @@ impl Keychain {
.map(|b| b.secret_key()) .map(|b| b.secret_key())
.collect::<Vec<SecretKey>>()); .collect::<Vec<SecretKey>>());
println!("pos_keys all - {}", pos_keys.len());
println!("neg_keys all - {}", neg_keys.len());
let blinding = self.secp.blind_sum(pos_keys, neg_keys)?; let blinding = self.secp.blind_sum(pos_keys, neg_keys)?;
Ok(BlindingFactor::new(blinding)) Ok(BlindingFactor::new(blinding))
} }