Module channel_keys
Expand description
Keys used to generate commitment transactions. See: https://github.com/lightning/bolts/blob/master/03-transactions.md#keys
Structs§
- Delayed
Payment Basepoint - Base key used in conjunction with a
per_commitment_point
to generate aDelayedPaymentKey
. - Delayed
Payment Key - A derived key built from a
DelayedPaymentBasepoint
andper_commitment_point
. - Htlc
Basepoint - Base key used in conjunction with a
per_commitment_point
to generate anHtlcKey
. - HtlcKey
- A derived key built from a
HtlcBasepoint
andper_commitment_point
. - Revocation
Basepoint - Master key used in conjunction with per_commitment_point to generate htlcpubkey for the latest state of a channel. A watcher can be given a RevocationBasepoint to generate per commitment RevocationKey to create justice transactions.
- Revocation
Key - The revocation key is used to allow a channel party to revoke their state - giving their counterparty the required material to claim all of their funds if they broadcast that state.
Functions§
- add_
public_ key_ tweak - Adds a tweak to a public key to derive a new public key.