Trait sp_core::crypto::VrfSecret

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

VRF Secret Key.

Required Methods§

source

fn vrf_output(&self, data: &Self::VrfInput) -> Self::VrfOutput

Get VRF-specific output .

source

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

Sign VRF-specific data.

Implementors§

source§

impl VrfSecret for sp_core::bandersnatch::Pair

source§

impl VrfSecret for sp_core::sr25519::Pair