derive_vrf_parameters

Function derive_vrf_parameters 

Source
pub fn derive_vrf_parameters<T>(
    msg: T,
    chain_keypair: &ChainKeypair,
    dst: &[u8],
) -> Result<VrfParameters, CryptoError>
where T: AsRef<[u8]>,
Expand description

Takes a private key, the corresponding Ethereum address and a payload and creates all parameters that are required by the smart contract to prove that a ticket is a win.