Module channel_keys
Expand description
Keys used to generate commitment transactions. See: https://github.com/lightning/bolts/blob/master/03-transactions.md#keys
Structs§
- Base key used in conjunction with a
per_commitment_point
to generate aDelayedPaymentKey
. - A derived key built from a
DelayedPaymentBasepoint
andper_commitment_point
. - Base key used in conjunction with a
per_commitment_point
to generate anHtlcKey
. - A derived key built from a
HtlcBasepoint
andper_commitment_point
. - 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.
- 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§
- Adds a tweak to a public key to derive a new public key.