pub type TicketSignature = RingVrfSignature;
Expand description
Ticket ring vrf signature.
Aliased Type§
struct TicketSignature {
pub signature: [u8; 755],
pub pre_outputs: BoundedVec<VrfPreOutput, ConstU32<3>>,
}
Fields§
§signature: [u8; 755]
Ring signature.
pre_outputs: BoundedVec<VrfPreOutput, ConstU32<3>>
VRF pre-outputs.
Implementations
§impl RingVrfSignature
impl RingVrfSignature
pub fn ring_vrf_verify(
&self,
data: &VrfSignData,
verifier: &RingVerifier<Fp<MontBackend<FrConfig, 4>, 4>, KZG<Bls12<Config<HostHooks>>>, BandersnatchConfig<HostHooks>>,
) -> bool
pub fn ring_vrf_verify( &self, data: &VrfSignData, verifier: &RingVerifier<Fp<MontBackend<FrConfig, 4>, 4>, KZG<Bls12<Config<HostHooks>>>, BandersnatchConfig<HostHooks>>, ) -> bool
Verify a ring-vrf signature.
The signature is verifiable if it has been produced by a member of the ring
from which the RingVerifier
has been constructed.
Trait Implementations
§impl Clone for RingVrfSignature
impl Clone for RingVrfSignature
§fn clone(&self) -> RingVrfSignature
fn clone(&self) -> RingVrfSignature
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for RingVrfSignature
impl Debug for RingVrfSignature
§impl Decode for RingVrfSignature
impl Decode for RingVrfSignature
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<RingVrfSignature, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<RingVrfSignature, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
§impl Encode for RingVrfSignature
impl Encode for RingVrfSignature
§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl MaxEncodedLen for RingVrfSignature
impl MaxEncodedLen for RingVrfSignature
§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.