1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//! Paths for the keystore.

use std::path::PathBuf;

/// Subdirectory of the data directory where the conductor stores its
/// keystore. Keep the path short so that when it's used in CI the path doesn't
/// get too long to be used as a domain socket
pub const KEYSTORE_DIRECTORY: &str = "ks";

/// Newtype to make sure we never accidentaly use or not use the keystore path.
/// Intentionally has no default value.
#[derive(
    shrinkwraprs::Shrinkwrap,
    derive_more::From,
    Debug,
    PartialEq,
    serde::Serialize,
    serde::Deserialize,
    Clone,
)]
pub struct KeystorePath(PathBuf);