[][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, U> Into<U> for T where
    U: From<T>, 
[src]

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

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.

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

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

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