Function breez_sdk_core::lightning::ln::chan_utils::derive_private_key

pub fn derive_private_key<T>(
    secp_ctx: &Secp256k1<T>,
    per_commitment_point: &PublicKey,
    base_secret: &SecretKey,
) -> SecretKey
where T: Signing,
Expand description

Derives a per-commitment-transaction private key (eg an htlc key or delayed_payment key) from the base secret and the per_commitment_point.