Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Lightspark Remote Signer to use tracing lib for logs. #17

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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