Splitting key load / wallet creation so we can use keys in esplora client
This commit is contained in:
@@ -2,7 +2,13 @@ use bft_json_crdt::{
|
||||
json_crdt::{BaseCrdt, SignedOp},
|
||||
keypair::make_keypair,
|
||||
};
|
||||
use side_node::{clients::websocket::Client, crdt::TransactionList, keys, node::SideNode, utils};
|
||||
use side_node::{
|
||||
clients::{btc_electrum_client, websocket::Client},
|
||||
crdt::TransactionList,
|
||||
keys,
|
||||
node::SideNode,
|
||||
utils,
|
||||
};
|
||||
use tokio::sync::mpsc;
|
||||
|
||||
#[tokio::test]
|
||||
@@ -36,7 +42,8 @@ async fn setup(_: &str) -> SideNode {
|
||||
// First, load up the keys and create a bft-crdt
|
||||
let bft_crdt_keys = make_keypair();
|
||||
let mnemonic_words = keys::bitcoin::make_mnemonic();
|
||||
let bitcoin_wallet = keys::bitcoin::create_wallet(mnemonic_words).unwrap();
|
||||
let bitcoin_keys = keys::bitcoin::get(mnemonic_words).unwrap();
|
||||
let bitcoin_wallet = btc_electrum_client::create_wallet(bitcoin_keys).unwrap();
|
||||
let crdt = BaseCrdt::<TransactionList>::new(&bft_crdt_keys);
|
||||
|
||||
// Channels for internal communication, and a tokio task for stdin input
|
||||
|
||||
Reference in New Issue
Block a user