Moved keys submodules
This commit is contained in:
@@ -5,11 +5,10 @@ use node::SideNode;
|
||||
use tokio::{sync::mpsc, task};
|
||||
use websocket::WebSocketClient;
|
||||
|
||||
pub mod bft_crdt_keys;
|
||||
pub mod bitcoin_keys;
|
||||
pub(crate) mod cli;
|
||||
pub mod crdt;
|
||||
pub(crate) mod init;
|
||||
pub mod keys;
|
||||
pub mod node;
|
||||
pub(crate) mod stdin;
|
||||
pub mod utils;
|
||||
@@ -39,8 +38,8 @@ pub async fn run() {
|
||||
async fn setup(name: &String) -> SideNode {
|
||||
// First, load up the keys and create a bft-crdt
|
||||
let side_dir = utils::home(name);
|
||||
let bft_crdt_keys = bft_crdt_keys::load_from_file(&side_dir);
|
||||
let bitcoin_keys = bitcoin_keys::load_from_file(&side_dir);
|
||||
let bft_crdt_keys = keys::bft_crdt::load_from_file(&side_dir);
|
||||
let bitcoin_keys = keys::bitcoin::load_from_file(&side_dir);
|
||||
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