hopr_crypto_sphinx::derivation

Function derive_own_key_share

Source
pub fn derive_own_key_share(secret: &SecretKey) -> HalfKey
Expand description

Used in Proof of Relay to derive own half-key (S0) The function samples a secp256k1 field element using the given secret via sample_field_element.