Browse Source

removed another println

pull/8/head
Nanak Nihal Singh Khalsa 1 year ago
parent
commit
0299b2e0bb
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      src/lib.rs

+ 0
- 1
src/lib.rs

@ -430,7 +430,6 @@ impl PrivateKey {
// encrypts msg to public key to_pubkey, using some random scalar nonce // encrypts msg to public key to_pubkey, using some random scalar nonce
pub fn encrypt_elgamal(to_pubkey: &Point, nonce: &BigInt, msg: &Point) -> ElGamalEncryption { pub fn encrypt_elgamal(to_pubkey: &Point, nonce: &BigInt, msg: &Point) -> ElGamalEncryption {
let shared_secret = to_pubkey.mul_scalar(&nonce); let shared_secret = to_pubkey.mul_scalar(&nonce);
println!("Shared Secret 2 {:?}", shared_secret);
let public_nonce = B8.mul_scalar(&nonce); let public_nonce = B8.mul_scalar(&nonce);
// let msg_point = point_for_msg(msg); // let msg_point = point_for_msg(msg);
let msg_plus_secret = msg.projective().add( let msg_plus_secret = msg.projective().add(

Loading…
Cancel
Save