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!
Constructs a KeysManager from a 32-byte seed. If the seed is in some way biased (eg your
RNG is busted) this may panic.
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
Get a secret for construting an onion packet
Get a unique temporary channel id. Channels will be referred to by this until the funding transaction is created, at which point they will use the outpoint in the funding transaction. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static