Skip to content

Commit

Permalink
feat: Log message data before signing and after getting the signature
Browse files Browse the repository at this point in the history
  • Loading branch information
S0c5 committed May 1, 2024
1 parent 3256b6a commit a55bc3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libwallet/src/vault/pjs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ impl Signer for Pjs {
type Signature = AnySignature;

async fn sign_msg(&self, msg: impl AsRef<[u8]>) -> Result<Self::Signature, ()> {
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))
Expand Down

0 comments on commit a55bc3b

Please sign in to comment.