Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: d45a3fb3e418bfc54f45fbf9a5741dea5c51f5d6
  • Loading branch information
Lightspark Eng authored and zhenlu committed Sep 28, 2023
1 parent 0a98df5 commit 8361975
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions examples/lightspark-remote-signing-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
14 changes: 6 additions & 8 deletions examples/lightspark-remote-signing-server/src/main.rs
Original file line number Diff line number Diff line change
@@ -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},
Expand Down Expand Up @@ -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::<Secp256k1SigningKey>::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 =
Expand Down
4 changes: 4 additions & 0 deletions lightspark-remote-signing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.2.0
- Remove unnecessary lightspark dependencies.
- Expose lightspark crates.

## v0.1.4
- Bump lightspark SDK version.

Expand Down
4 changes: 2 additions & 2 deletions lightspark-remote-signing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "lightspark-remote-signing"
description = "Lightspark Remote Signing SDK for Rust"
authors = ["Lightspark Group, Inc. <[email protected]>"]
version = "0.1.5"
version = "0.2.0"
edition = "2021"
documentation = "https://app.lightspark.com/docs/"
homepage = "https://www.lightspark.com/"
Expand All @@ -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"
Expand Down

0 comments on commit 8361975

Please sign in to comment.