Skip to content

Commit

Permalink
Cleaning up the ouput removing println debug msg
Browse files Browse the repository at this point in the history
  • Loading branch information
grunch committed Dec 9, 2024
1 parent 2e08bac commit 1a0ab7f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,13 +361,10 @@ impl MessageKind {

pub fn verify_signature(&self, pubkey: PublicKey, sig: Signature) -> bool {
// Create message hash
let json: Value = json!(self);
let message: String = json.to_string();
let message = self.as_json().unwrap();
let hash: Sha256Hash = Sha256Hash::hash(message.as_bytes());
let hash = hash.to_byte_array();
println!("hash: {:?}", hash);
let message: BitcoinMessage = BitcoinMessage::from_digest(hash);
println!("BitcoinMessage::from_digest: {:?}", message);
// Create a verification-only context for better performance
let secp = Secp256k1::verification_only();
// Verify signature
Expand Down

0 comments on commit 1a0ab7f

Please sign in to comment.