Removed all the bitcoin dependencies (updated the rest)

This commit is contained in:
Dave
2025-06-12 15:29:44 -04:00
parent a8a5422ea8
commit 7878bb9149
13 changed files with 5 additions and 469 deletions

View File

@@ -2,22 +2,18 @@ use bft_json_crdt::json_crdt::SignedOp;
use serde_json::{json, Value};
use std::path::PathBuf;
pub(crate) const BITCOIN_KEY_FILE: &str = "bitcoin_keys.pem";
pub(crate) const BFT_CRDT_KEY_FILE: &str = "keys.pem";
pub(crate) const CONFIG_FILE: &str = "config.toml";
/// Returns the path to the key file and config for this host OS.
pub(crate) fn side_paths(prefix: PathBuf) -> (PathBuf, PathBuf, PathBuf) {
pub(crate) fn side_paths(prefix: PathBuf) -> (PathBuf, PathBuf) {
let mut bft_crdt_key_path = prefix.clone();
bft_crdt_key_path.push(BFT_CRDT_KEY_FILE);
let mut bitcoin_key_path = prefix.clone();
bitcoin_key_path.push(BITCOIN_KEY_FILE);
let mut config_path = prefix.clone();
config_path.push(CONFIG_FILE);
(bft_crdt_key_path, bitcoin_key_path, config_path)
(bft_crdt_key_path, config_path)
}
/// Returns the path to the home directory for this host OS and the given node name