Trait sp_core::crypto::VrfSecret

source ·
pub trait VrfSecret: VrfCrypto {
    // Required methods
    fn vrf_pre_output(&self, data: &Self::VrfInput) -> Self::VrfPreOutput;
    fn vrf_sign(&self, input: &Self::VrfSignData) -> Self::VrfSignature;
}
Expand description

VRF Secret Key.

Required Methods§

source

fn vrf_pre_output(&self, data: &Self::VrfInput) -> Self::VrfPreOutput

Get VRF-specific pre-output.

source

fn vrf_sign(&self, input: &Self::VrfSignData) -> Self::VrfSignature

Sign VRF-specific data.

Implementors§