Expand description

keysinterface provides keys into rust-lightning and defines some useful enums which describe spendable on-chain outputs which the user owns and is responsible for using just as any other on-chain output which is theirs.

Structs

Information about a spendable output to a P2WSH script. See SpendableOutputDescriptor::DelayedPaymentOutput for more details on how to spend this.

A simple implementation of Sign that just keeps the private keys in memory.

Used as initial key material, to be expanded into multiple secret keys (but not to be used directly). This is used within LDK to encrypt/decrypt inbound payment data. (C-not exported) as we just use [u8; 32] directly

Simple KeysInterface implementor that takes a 32-byte seed for use as a BIP 32 extended key and derives keys from that.

Similar to KeysManager, but allows the node using this struct to receive phantom node payments.

Information about a spendable output to our “payment key”. See SpendableOutputDescriptor::StaticPaymentOutput for more details on how to spend this.

Enums

Specifies the recipient of an invoice, to indicate to KeysInterface::sign_invoice what node secret key should be used to sign the invoice.

When on-chain outputs are created by rust-lightning (which our counterparty is not able to claim at any point in the future) an event is generated which you must track and be able to spend on-chain. The information needed to do this is provided in this enum, including the outpoint describing which txid and output index is available, the full output which exists at that txid/index, and any keys or other information required to sign.

Traits

A trait to sign lightning channel transactions as described in BOLT 3.

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

A cloneable signer.