breez_sdk_liquid::lightning::ln::chan_utils

Function derive_public_key

pub fn derive_public_key<T>(
    secp_ctx: &Secp256k1<T>,
    per_commitment_point: &PublicKey,
    base_point: &PublicKey,
) -> PublicKey
where T: Signing,
Expand description

Derives a per-commitment-transaction public key (eg an htlc key or a delayed_payment key) from the base point and the per_commitment_key. This is the public equivalent of derive_private_key - using only public keys to derive a public key instead of private keys.