pub trait KeysInterface: Send + Sync {
    fn get_node_secret(&self) -> SecretKey;
    fn get_destination_script(&self) -> Script;
    fn get_shutdown_pubkey(&self) -> PublicKey;
    fn get_channel_keys(&self, inbound: bool) -> ChannelKeys;
}
Expand description

A trait to describe an object which can get user secrets and key material.

Required Methods

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!

Implementors