Struct lightning::chain::keysinterface::KeysManager
source · 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
sourceimpl KeysManager
impl KeysManager
Trait Implementations
sourceimpl KeysInterface for KeysManager
impl KeysInterface for KeysManager
sourcefn get_node_secret(&self) -> SecretKey
fn get_node_secret(&self) -> SecretKey
Get node secret key (aka node_id or network_key)
sourcefn get_destination_script(&self) -> Script
fn get_destination_script(&self) -> Script
Get destination redeemScript to encumber static protocol exit points.
sourcefn get_shutdown_pubkey(&self) -> PublicKey
fn get_shutdown_pubkey(&self) -> PublicKey
Get shutdown_pubkey to use as PublicKey at channel closure
sourcefn get_channel_keys(&self, _inbound: bool) -> ChannelKeys
fn get_channel_keys(&self, _inbound: bool) -> ChannelKeys
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
impl !RefUnwindSafe for KeysManager
impl Send for KeysManager
impl Sync for KeysManager
impl Unpin for KeysManager
impl !UnwindSafe for KeysManager
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more