Type Alias sc_network::config::Ed25519Secret

source ·
pub type Ed25519Secret = Secret<SecretKey>;
Expand description

The options for obtaining a Ed25519 secret key.

Aliased Type§

enum Ed25519Secret {
    Input(SecretKey),
    File(PathBuf),
    New,
}

Variants§

§

Input(SecretKey)

Use the given secret key K.

§

File(PathBuf)

Read the secret key from a file. If the file does not exist, it is created with a newly generated secret key K. The format of the file is determined by K:

  • ed25519::SecretKey: An unencoded 32 bytes Ed25519 secret key.
§

New

Always generate a new secret key K.