Type Alias sp_runtime::testing::sr25519::vrf::VrfInput

source ·
pub type VrfInput = VrfTranscript;
Expand description

VRF input.

Technically a transcript used by the Fiat-Shamir transform.

Aliased Type§

struct VrfInput(pub Transcript);

Fields§

§0: Transcript

Implementations§

source§

impl VrfTranscript

source

pub fn new( label: &'static [u8], data: &[(&'static [u8], &[u8])] ) -> VrfTranscript

Build a new transcript instance.

Each data element is a tuple (domain, message) used to build the transcript.

source

pub fn into_sign_data(self) -> VrfSignData

Map transcript to VrfSignData.

Trait Implementations§

source§

impl Clone for VrfTranscript

source§

fn clone(&self) -> VrfTranscript

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more