Expand description
Provides keys to LDK and defines some useful objects describing spendable on-chain outputs.
The provided output descriptors follow a custom LDK data format and are currently not fully compatible with Bitcoin Core output descriptors.
Modules§
- ecdsa
- Defines ECDSA-specific signer types.
- tx_
builder - Defines the
TxBuildertrait, and theSpecTxBuildertype
Structs§
- Channel
Derivation Parameters - The parameters required to derive a channel signer via
SignerProvider. - Delayed
Payment Output Descriptor - Information about a spendable output to a P2WSH script.
- HTLC
Descriptor - A descriptor used to sign for a commitment transaction’s HTLC output.
- InMemory
Signer - A simple implementation of
EcdsaChannelSignerthat just keeps the private keys in memory. - Keys
Manager - Simple implementation of
EntropySource,NodeSigner, andSignerProviderthat takes a 32-byte seed for use as a BIP 32 extended key and derives keys from that. - Peer
Storage Key - Represents the secret key material used for encrypting Peer Storage.
- Phantom
Keys Manager - Similar to
KeysManager, but allows the node using this struct to receive phantom node payments. - Random
Bytes - An implementation of
EntropySourceusing ChaCha20. - Receive
Auth Key - A secret key used to authenticate message contexts in received
BlindedMessagePaths. - Static
Payment Output Descriptor - Information about a spendable output to our “payment key”.
Enums§
- Recipient
- Specifies the recipient of an invoice.
- Spendable
Output Descriptor - Describes the necessary information to spend a spendable output.
Constants§
- STATIC_
PAYMENT_ KEY_ COUNT - If a
KeysManageris built withKeysManager::newwithv2_remote_key_derivationset (and for all channels after they’ve been spliced), the script which we receive funds to on-chain when our counterparty force-closes a channel is one of this many possible derivation paths.
Traits§
- Change
Destination Source - A helper trait that describes an on-chain wallet capable of returning a (change) destination script.
- Change
Destination Source Sync - A synchronous helper trait that describes an on-chain wallet capable of returning a (change) destination script.
- Channel
Signer - A trait to handle Lightning channel key material without concretizing the channel type or the signature mechanism.
- Entropy
Source - A trait that describes a source of entropy.
- Node
Signer - A trait that can handle cryptographic operations at the scope level of a node.
- Output
Spender - A trait that describes a wallet capable of creating a spending
Transactionfrom a set ofSpendableOutputDescriptors. - Signer
Provider - A trait that can return signer instances for individual channels.
Functions§
- compute_
funding_ key_ tweak - Computes the tweak to apply to the base funding key of a channel.