referrerpolicy=no-referrer-when-downgrade
sp_core::crypto

Trait VrfPublic

Source
pub trait VrfPublic: VrfCrypto {
    // Required method
    fn vrf_verify(
        &self,
        data: &Self::VrfSignData,
        signature: &Self::VrfSignature,
    ) -> bool;
}
Expand description

VRF Public Key.

Required Methods§

Source

fn vrf_verify( &self, data: &Self::VrfSignData, signature: &Self::VrfSignature, ) -> bool

Verify input data signature.

Implementors§

Source§

impl VrfPublic for sp_core::bandersnatch::Public

Source§

impl VrfPublic for sp_core::sr25519::Public