fedimint_ln_client

Function tweak_user_key

source
pub fn tweak_user_key<Ctx: Verification + Signing>(
    secp: &Secp256k1<Ctx>,
    user_key: PublicKey,
    index: u64,
) -> PublicKey
Expand description

Tweak a user key with an index, this is used to generate a new key for each invoice. This is done to not be able to link invoices to the same user.