Module channel_keys

Expand description

Keys used to generate commitment transactions. See: https://github.com/lightning/bolts/blob/master/03-transactions.md#keys

Structs§

DelayedPaymentBasepoint
Base key used in conjunction with a per_commitment_point to generate a DelayedPaymentKey.
DelayedPaymentKey
A derived key built from a DelayedPaymentBasepoint and per_commitment_point.
HtlcBasepoint
Base key used in conjunction with a per_commitment_point to generate an HtlcKey.
HtlcKey
A derived key built from a HtlcBasepoint and per_commitment_point.
RevocationBasepoint
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.
RevocationKey
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.