From a55bc3b0f32989017dc0ea0459c525d4edc05d50 Mon Sep 17 00:00:00 2001 From: david barinas Date: Wed, 1 May 2024 18:13:55 -0500 Subject: [PATCH] feat: Log message data before signing and after getting the signature --- libwallet/src/vault/pjs.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/libwallet/src/vault/pjs.rs b/libwallet/src/vault/pjs.rs index e21040b..43d03e6 100644 --- a/libwallet/src/vault/pjs.rs +++ b/libwallet/src/vault/pjs.rs @@ -32,6 +32,7 @@ impl Signer for Pjs { type Signature = AnySignature; async fn sign_msg(&self, msg: impl AsRef<[u8]>) -> Result { + log::info!("signing: {}", hex::encode(&msg.as_ref())); let sig = self.inner.sign(msg.as_ref()).await.map_err(|_| ())?; log::info!("signature {:?}", hex::encode(&sig)); Ok(AnySignature::from(sig))