hopr_chain_actions::payload

Function convert_vrf_parameters

Source
pub fn convert_vrf_parameters(
    off_chain: &VrfParameters,
    signer: &Address,
    ticket_hash: &Hash,
    domain_separator: &Hash,
) -> Vrfparameters
Expand description

Converts off-chain representation of VRF parameters into a representation that the smart contract understands

Not implemented using From trait because logic fits better here