Skip to content

Commit

Permalink
deps: simple-wallet to use exported secp from bitcoin
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyhodl committed Jun 5, 2024
1 parent fbe7ba2 commit a815785
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion simple-wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ dlc = {path = "../dlc"}
dlc-manager = {path = "../dlc-manager"}
lightning = {version = "0.0.121"}
bdk = {version = "0.29.0"}
secp256k1-zkp = {version = "0.9.2"}

[dev-dependencies]
mocks = {path = "../mocks"}
Expand Down
6 changes: 3 additions & 3 deletions simple-wallet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ use bdk::{
wallet::coin_selection::{BranchAndBoundCoinSelection, CoinSelectionAlgorithm},
FeeRate, KeychainKind, LocalUtxo, Utxo as BdkUtxo, WeightedUtxo,
};
use bitcoin::secp256k1::rand::{thread_rng, RngCore};
use bitcoin::secp256k1::{All, PublicKey, Secp256k1, SecretKey};
use bitcoin::{
hashes::Hash, Address, Network, OutPoint, Script, Sequence, Transaction, TxIn, TxOut, Txid,
Witness,
Expand All @@ -14,8 +16,6 @@ use dlc_manager::{
error::Error, Blockchain, ContractSignerProvider, KeysId, SimpleSigner, Utxo, Wallet,
};
use lightning::chain::chaininterface::{ConfirmationTarget, FeeEstimator};
use secp256k1_zkp::rand::RngCore;
use secp256k1_zkp::{rand::thread_rng, All, PublicKey, Secp256k1, SecretKey};

type Result<T> = core::result::Result<T, Error>;

Expand Down Expand Up @@ -524,10 +524,10 @@ where
mod tests {
use std::rc::Rc;

use bitcoin::secp256k1::{PublicKey, SECP256K1};
use dlc_manager::ContractSignerProvider;
use mocks::simple_wallet::SimpleWallet;
use mocks::{memory_storage_provider::MemoryStorage, mock_blockchain::MockBlockchain};
use secp256k1_zkp::{PublicKey, SECP256K1};

fn get_wallet() -> SimpleWallet<Rc<MockBlockchain>, Rc<MemoryStorage>> {
let blockchain = Rc::new(MockBlockchain::new());
Expand Down

0 comments on commit a815785

Please sign in to comment.