diff --git a/Cargo.toml b/Cargo.toml index 6128ce2..c63f825 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ crate-type = ["cdylib", "rlib"] anyhow = "1.0" serde = { version = "1.0.193", features = ["derive"] } serde_json = "1.0.108" -sp_backend = { git = "https://github.com/Sosthene00/sp-backend.git", branch = "sp_client" } +sp_client = { git = "https://github.com/Sosthene00/sp-client.git", branch = "sp_client" } uuid = { version = "1.6.1", features = ["serde", "v4"] } aes-gcm = "0.10.3" rand = "0.8.5" diff --git a/src/crypto.rs b/src/crypto.rs index 71eb324..b993983 100644 --- a/src/crypto.rs +++ b/src/crypto.rs @@ -1,7 +1,7 @@ use std::collections::HashMap; use anyhow::{Error, Result}; -use sp_backend::{ +use sp_client::{ bitcoin::{ consensus::serde::hex, hex::DisplayHex, diff --git a/src/network.rs b/src/network.rs index 274ab04..dea07f8 100644 --- a/src/network.rs +++ b/src/network.rs @@ -1,12 +1,8 @@ -use std::str::FromStr; - use anyhow::{Error, Result}; use serde::{Deserialize, Serialize}; -use serde_json::Value; -use sp_backend::bitcoin::key::constants::ZERO; -use sp_backend::bitcoin::{consensus::deserialize, hashes, secp256k1::PublicKey, Transaction}; -use sp_backend::bitcoin::{OutPoint, Txid}; -use sp_backend::silentpayments::bitcoin_hashes::{sha256t_hash_newtype, Hash, HashEngine}; +use sp_client::bitcoin::key::constants::ZERO; +use sp_client::bitcoin::OutPoint; +use sp_client::silentpayments::bitcoin_hashes::{sha256t_hash_newtype, Hash, HashEngine}; use tsify::Tsify; use crate::crypto::CipherText;