[][src]Struct lightning::chain::keysinterface::KeysManager

pub struct KeysManager { /* fields omitted */ }

Simple KeysInterface implementor that takes a 32-byte seed for use as a BIP 32 extended key and derives keys from that.

Your node_id is seed/0' ChannelMonitor closes may use seed/1' Cooperative closes may use seed/2' The two close keys may be needed to claim on-chain funds!

Methods

impl KeysManager
[src]

pub fn new(
    seed: &[u8; 32],
    network: Network,
    logger: Arc<dyn Logger>
) -> KeysManager
[src]

Constructs a KeysManager from a 32-byte seed. If the seed is in some way biased (eg your RNG is busted) this may panic.

Trait Implementations

impl KeysInterface for KeysManager
[src]

Auto Trait Implementations

impl Send for KeysManager

impl Sync for KeysManager

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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