pub struct DelayedPaymentKey(pub PublicKey);Expand description
A derived key built from a DelayedPaymentBasepoint and per_commitment_point.
The delayed payment key is used to pay the commitment state broadcaster their non-HTLC-encumbered funds after a delay. This delay gives their counterparty a chance to punish and claim all the channel funds if the state broadcasted was previously revoked.
[See the BOLT specs] https://github.com/lightning/bolts/blob/master/03-transactions.md#localpubkey-local_htlcpubkey-remote_htlcpubkey-local_delayedpubkey-and-remote_delayedpubkey-derivation for more information on key derivation details.
Tuple Fields§
§0: PublicKeyImplementations§
Source§impl DelayedPaymentKey
impl DelayedPaymentKey
Sourcepub fn from_basepoint<T: Signing>(
secp_ctx: &Secp256k1<T>,
countersignatory_basepoint: &DelayedPaymentBasepoint,
per_commitment_point: &PublicKey,
) -> Self
pub fn from_basepoint<T: Signing>( secp_ctx: &Secp256k1<T>, countersignatory_basepoint: &DelayedPaymentBasepoint, per_commitment_point: &PublicKey, ) -> Self
Derive a public delayedpubkey using one node’s per_commitment_point and its countersignatory’s basepoint
Sourcepub fn from_secret_key<T: Signing>(
secp_ctx: &Secp256k1<T>,
sk: &SecretKey,
) -> Self
pub fn from_secret_key<T: Signing>( secp_ctx: &Secp256k1<T>, sk: &SecretKey, ) -> Self
Build a delayedpubkey directly from an already-derived private key
Sourcepub fn to_public_key(&self) -> PublicKey
pub fn to_public_key(&self) -> PublicKey
Get inner Public Key
Trait Implementations§
Source§impl Clone for DelayedPaymentKey
impl Clone for DelayedPaymentKey
Source§fn clone(&self) -> DelayedPaymentKey
fn clone(&self) -> DelayedPaymentKey
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more