[][src]Struct tendermint::config::NodeKey

pub struct NodeKey {
    pub priv_key: PrivateKey,
}

P2P node private keys

Fields

priv_key: PrivateKey

Private key

Methods

impl NodeKey[src]

pub fn parse_json<T: AsRef<str>>(json_string: T) -> Result<Self, Error>[src]

Parse node_key.json

pub fn load_json_file<P>(path: &P) -> Result<Self, Error> where
    P: AsRef<Path>, 
[src]

Load node_key.json from a file

pub fn public_key(&self) -> PublicKey[src]

Get the public key for this keypair

pub fn node_id(&self) -> Id[src]

Get node ID for this keypair

Trait Implementations

impl<'de> Deserialize<'de> for NodeKey[src]

impl Serialize for NodeKey[src]

Auto Trait Implementations

impl RefUnwindSafe for NodeKey

impl Send for NodeKey

impl Sync for NodeKey

impl Unpin for NodeKey

impl UnwindSafe for NodeKey

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.