diff --git a/api/src/lib.rs b/api/src/lib.rs index 22f12fa..482789c 100644 --- a/api/src/lib.rs +++ b/api/src/lib.rs @@ -103,7 +103,7 @@ pub mod api_formatting_tests { #[test] fn create_identity_balance_request_entity() { let req = QubicApiPacket::get_identity_balance("EPYWDREDNLHXOFYVGQUKPHJGOMPBSLDDGZDPKVQUMFXAIQYMZGEHPZTAAWON"); - println!("{:?}", req); + assert_eq!(req.header._size[0], 40u8); } #[test] @@ -111,7 +111,6 @@ pub mod api_formatting_tests { let mut req = QubicApiPacket::get_identity_balance("EPYWDREDNLHXOFYVGQUKPHJGOMPBSLDDGZDPKVQUMFXAIQYMZGEHPZTAAWON"); req.header.zero_dejavu(); //Dejavu is random 3 byte value let bytes = req.as_bytes(); - println!("{:?}", &bytes); assert_eq!(bytes.len(), 40); assert_eq!(bytes.as_slice(), vec![40, 0, 0, 31, 0, 0, 0, 0, 170, 135, 62, 76, 253, 55, 228, 191, 82, 138, 42, 160, 30, 236, 239, 54, 84, 124, 153, 202, 170, 189, 27, 189, 247, 37, 58, 101, 176, 65, 119, 26] diff --git a/api/src/transfer.rs b/api/src/transfer.rs index 03470fe..bd0a19c 100644 --- a/api/src/transfer.rs +++ b/api/src/transfer.rs @@ -28,7 +28,6 @@ impl TransferTransaction { Ok(pub_key) => pub_key, Err(err) => panic!("{:?}", err) }; - println!("{} -> {:?}", source_identity.identity.as_str(), &pub_key_src); let pub_key_dest = match get_public_key_from_identity(&String::from(dest)) { Ok(pub_key) => pub_key, Err(err) => panic!("{:?}", err) @@ -50,7 +49,6 @@ impl TransferTransaction { let mut sig: [u8; 64] = [0; 64]; sig = sign_raw(&sub_seed, &pub_key_src, digest.as_slice().try_into().unwrap()); - println!("Signed Signature: {:?}", sig); t._signature = sig.to_vec(); t } diff --git a/crypto/src/lib.rs b/crypto/src/lib.rs index cc60066..a39d744 100644 --- a/crypto/src/lib.rs +++ b/crypto/src/lib.rs @@ -145,11 +145,6 @@ pub mod qubic_identities { } pub fn sign_raw(subseed: &Vec, public_key: &[u8; 32], message_digest: [u8; 32]) -> [u8; 64] { - - println!("Got Subseed: {:?}", subseed); - println!("Got Public Key: {:?}", public_key); - println!("Got Message Digest: {:?}", &message_digest); - let mut r_a = PointAffine::default(); let (mut k, mut h, mut temp) = ([0u8; 64], [0u8; 64], [0u8; 96]); let mut r = [0u8; 64];