Skip to content

Commit

Permalink
Change Lightspark Remote Signer to use tracing lib for logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowred committed Nov 16, 2023
1 parent 5ebdcd1 commit c081e3d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lightspark-remote-signing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ bitcoin = "0.30.1"
hex = "0.4.3"
rand_core = { "version" = "0.6.4", features = ["getrandom"] }
serde_json = "1.0.104"
log = "0.4.20"
serde = "1.0.183"
tracing = { version = "0.1", features = ["log"], default-features = false }
tracing-subscriber = "0.3"
2 changes: 1 addition & 1 deletion lightspark-remote-signing/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use lightspark::{
},
webhooks::WebhookEvent,
};
use log::info;
use serde::Deserialize;
use serde_json::from_value;
use tracing::info;

use crate::{response::Response, signer::LightsparkSigner, validation::Validation, Error};

Expand Down
2 changes: 1 addition & 1 deletion lightspark-remote-signing/src/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ use bitcoin::hashes::{sha512, Hash, HashEngine, Hmac, HmacEngine};
use bitcoin::secp256k1::ecdh::SharedSecret;
use bitcoin::secp256k1::hashes::sha256;
use bitcoin::secp256k1::{Message, PublicKey, Scalar, Secp256k1, SecretKey};
use log::debug;
use rand_core::{OsRng, RngCore};
use tracing::debug;

const NODE_KEY_PATH: &str = "m/0";

Expand Down

0 comments on commit c081e3d

Please sign in to comment.