@@ -21,6 +21,7 @@ pub mod tx;
pub mod vm;
pub mod vm_serial;
pub mod wallet;
+pub mod util;
pub use crate::bls_extensions::BlsStringConversion;
pub use crate::error::{Error, Result};
@@ -0,0 +1,14 @@
+
+use crate::Error;
+use crate::Result;
+use std::path::PathBuf;
+pub fn join_config_path(file: &PathBuf) -> Result<PathBuf> {
+ let mut path = dirs::home_dir()
+ .ok_or(Error::PathNotFound)?
+ .as_path()
+ .join(".config/darkfi/");
+ path.push(file);
+ Ok(path)
+}