pub struct KeysManager { /* private fields */ }
Expand description

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!

Implementations

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

Get node secret key (aka node_id or network_key)
Get destination redeemScript to encumber static protocol exit points.
Get shutdown_pubkey to use as PublicKey at channel closure
Get a new set of ChannelKeys for per-channel secrets. These MUST be unique even if you restarted with some stale data! Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.