def generate_key_derivation(pub: Ge25519, sec: Sc25519) -> Ge25519: """ Key derivation: 8*(key2*key1) """ sc_check(sec) # checks that the secret key is uniform enough... check_ed25519point(pub) return tcry.xmr_generate_key_derivation(pub, sec)
def generate_key_derivation(pub, sec): """ Key derivation: 8*(key2*key1) """ sc_check(sec) # checks that the secret key is uniform enough... ge_frombytes_vartime_check(pub) return tcry.xmr_generate_key_derivation(pub, sec)
def generate_key_derivation(pub: tcry.Point, sec: tcry.Scalar) -> tcry.Point: """ Key derivation: 8*(key2*key1) """ tcry.sc_check(sec) # checks that the secret key is uniform enough... tcry.ge25519_check(pub) return tcry.xmr_generate_key_derivation(None, pub, sec)