get_root_dir_and_keypair

Function get_root_dir_and_keypair 

Source
pub fn get_root_dir_and_keypair(
    root_dir: &Option<PathBuf>,
) -> Result<(PathBuf, Keypair)>
Expand description

The keypair is located inside the root directory. At the same time, when no dir is specified, the dir name is derived from the keypair used in the application: the peer ID is used as the directory name.