Renamed keys module
This commit is contained in:
@@ -2,7 +2,7 @@ use std::path::PathBuf;
|
|||||||
|
|
||||||
use config::SideNodeConfig;
|
use config::SideNodeConfig;
|
||||||
|
|
||||||
use crate::{bitcoin_keys, keys, utils};
|
use crate::{bft_crdt_keys, bitcoin_keys, utils};
|
||||||
|
|
||||||
pub(crate) mod config;
|
pub(crate) mod config;
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@ pub(crate) fn init(home: PathBuf, config: SideNodeConfig) -> Result<(), std::io:
|
|||||||
let (bft_crdt_key_path, bitcoin_key_path, config_path) = utils::side_paths(home.clone());
|
let (bft_crdt_key_path, bitcoin_key_path, config_path) = utils::side_paths(home.clone());
|
||||||
|
|
||||||
println!("Writing bft crdt key to: {:?}", bft_crdt_key_path);
|
println!("Writing bft crdt key to: {:?}", bft_crdt_key_path);
|
||||||
keys::write(&bft_crdt_key_path)?;
|
bft_crdt_keys::write(&bft_crdt_key_path)?;
|
||||||
|
|
||||||
println!("Writing bitcoin key to: {:?}", bitcoin_key_path);
|
println!("Writing bitcoin key to: {:?}", bitcoin_key_path);
|
||||||
bitcoin_keys::write(&bitcoin_key_path)?;
|
bitcoin_keys::write(&bitcoin_key_path)?;
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ use node::SideNode;
|
|||||||
use tokio::{sync::mpsc, task};
|
use tokio::{sync::mpsc, task};
|
||||||
use websocket::WebSocketClient;
|
use websocket::WebSocketClient;
|
||||||
|
|
||||||
|
pub mod bft_crdt_keys;
|
||||||
pub(crate) mod bitcoin_keys;
|
pub(crate) mod bitcoin_keys;
|
||||||
pub(crate) mod cli;
|
pub(crate) mod cli;
|
||||||
pub mod crdt;
|
pub mod crdt;
|
||||||
pub(crate) mod init;
|
pub(crate) mod init;
|
||||||
pub mod keys;
|
|
||||||
pub mod node;
|
pub mod node;
|
||||||
pub(crate) mod stdin;
|
pub(crate) mod stdin;
|
||||||
pub mod utils;
|
pub mod utils;
|
||||||
@@ -39,7 +39,7 @@ pub async fn run() {
|
|||||||
async fn setup(name: &String) -> SideNode {
|
async fn setup(name: &String) -> SideNode {
|
||||||
// First, load up the keys and create a bft-crdt
|
// First, load up the keys and create a bft-crdt
|
||||||
let side_dir = utils::home(name);
|
let side_dir = utils::home(name);
|
||||||
let bft_crdt_keys = keys::load_from_file(side_dir);
|
let bft_crdt_keys = bft_crdt_keys::load_from_file(side_dir);
|
||||||
let crdt = BaseCrdt::<TransactionList>::new(&bft_crdt_keys);
|
let crdt = BaseCrdt::<TransactionList>::new(&bft_crdt_keys);
|
||||||
|
|
||||||
// Channels for internal communication, and a tokio task for stdin input
|
// Channels for internal communication, and a tokio task for stdin input
|
||||||
|
|||||||
Reference in New Issue
Block a user