casper-node 0.1.0

The Casper blockchain node
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use datasize::DataSize;
use serde::{Deserialize, Serialize};

use crate::{crypto::asymmetric_key::SecretKey, utils::External};

/// Consensus configuration.
#[derive(DataSize, Debug, Deserialize, Serialize, Default, Clone)]
// Disallow unknown fields to ensure config files and command-line overrides contain valid keys.
#[serde(deny_unknown_fields)]
pub struct Config {
    /// Path to secret key file.
    pub secret_key_path: External<SecretKey>,
}