breez_sdk_liquid::lightning_125::ln::channel_keys

Function add_public_key_tweak

pub fn add_public_key_tweak<T>(
    secp_ctx: &Secp256k1<T>,
    base_point: &PublicKey,
    tweak: &Hash,
) -> PublicKey
where T: Signing,
Expand description

Adds a tweak to a public key to derive a new public key.

May panic if tweak is not the output of a SHA-256 hash.