Trait sp_core::crypto::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