diff --git a/examples/lightspark-remote-signing-server/Cargo.toml b/examples/lightspark-remote-signing-server/Cargo.toml index 6f438c5..0ef06e5 100644 --- a/examples/lightspark-remote-signing-server/Cargo.toml +++ b/examples/lightspark-remote-signing-server/Cargo.toml @@ -6,6 +6,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +lightspark = { path = "../../lightspark" } lightspark-remote-signing = { path = "../../lightspark-remote-signing" } tokio = "1.32.0" actix-web = "4.4.0" diff --git a/examples/lightspark-remote-signing-server/src/main.rs b/examples/lightspark-remote-signing-server/src/main.rs index a808173..3fd9444 100644 --- a/examples/lightspark-remote-signing-server/src/main.rs +++ b/examples/lightspark-remote-signing-server/src/main.rs @@ -1,8 +1,8 @@ use actix_web::{get, post, web, App, HttpRequest, HttpResponse, HttpServer, Responder}; use futures_util::StreamExt as _; -use lightspark_remote_signing::lightspark::{ - key::Secp256k1SigningKey, request::auth_provider::AccountAuthProvider, webhooks::WebhookEvent, -}; +use lightspark::key::Secp256k1SigningKey; +use lightspark::request::auth_provider::AccountAuthProvider; +use lightspark_remote_signing::lightspark::webhooks::WebhookEvent; use lightspark_remote_signing::{ handler::Handler, signer::{LightsparkSigner, Seed}, @@ -33,11 +33,9 @@ async fn webhook_handler( } let auth = AccountAuthProvider::new(data.api_client_id.clone(), data.api_client_secret.clone()); - let client = lightspark_remote_signing::lightspark::client::LightsparkClient::< - Secp256k1SigningKey, - >::new(auth) - .unwrap(); - // client.requester.set_base_url(data.api_endpoint.clone()); + let mut client = + lightspark::client::LightsparkClient::::new(auth).unwrap(); + client.requester.set_base_url(data.api_endpoint.clone()); let seed = Seed::new(hex::decode(data.master_seed_hex.clone()).unwrap()); let signer = diff --git a/lightspark-remote-signing/CHANGELOG.md b/lightspark-remote-signing/CHANGELOG.md index ddd802b..2d10669 100644 --- a/lightspark-remote-signing/CHANGELOG.md +++ b/lightspark-remote-signing/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v0.2.0 +- Remove unnecessary lightspark dependencies. +- Expose lightspark crates. + ## v0.1.4 - Bump lightspark SDK version. diff --git a/lightspark-remote-signing/Cargo.toml b/lightspark-remote-signing/Cargo.toml index d8d281d..04e4977 100644 --- a/lightspark-remote-signing/Cargo.toml +++ b/lightspark-remote-signing/Cargo.toml @@ -2,7 +2,7 @@ name = "lightspark-remote-signing" description = "Lightspark Remote Signing SDK for Rust" authors = ["Lightspark Group, Inc. "] -version = "0.1.5" +version = "0.2.0" edition = "2021" documentation = "https://app.lightspark.com/docs/" homepage = "https://www.lightspark.com/" @@ -13,7 +13,7 @@ readme = "README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -lightspark = "0.6.4" +lightspark = { "version" = "0.7.0", default-features = false, features = ["objects", "webhooks"] } bip39 = { "version" = "2.0.0", features = ["rand"]} bitcoin = "0.30.1" hex = "0.4.3"