Struct schnorrkel::vrf::VRFProofBatchable
source · pub struct VRFProofBatchable { /* private fields */ }
Expand description
Longer proof of correctness for associated VRF output, which supports batching.
Implementations§
source§impl VRFProofBatchable
impl VRFProofBatchable
sourcepub fn from_bytes(bytes: &[u8]) -> SignatureResult<VRFProofBatchable>
pub fn from_bytes(bytes: &[u8]) -> SignatureResult<VRFProofBatchable>
Construct a VRFProofBatchable
from a slice of bytes.
sourcepub fn shorten_dleq<T>(
&self,
t: T,
public: &PublicKey,
p: &VRFInOut,
kusama: bool
) -> VRFProofwhere
T: SigningTranscript,
pub fn shorten_dleq<T>( &self, t: T, public: &PublicKey, p: &VRFInOut, kusama: bool ) -> VRFProofwhere T: SigningTranscript,
Return the shortened VRFProof
for retransmitting in not batched situations
sourcepub fn shorten_vrf<T>(
&self,
public: &PublicKey,
t: T,
out: &VRFOutput
) -> SignatureResult<VRFProof>where
T: VRFSigningTranscript,
pub fn shorten_vrf<T>( &self, public: &PublicKey, t: T, out: &VRFOutput ) -> SignatureResult<VRFProof>where T: VRFSigningTranscript,
Return the shortened VRFProof
for retransmitting in non-batched situations
TODO: Avoid the error path here by avoiding decompressing,
either locally here, or more likely by decompressing
VRFOutput
in deserialization.
Trait Implementations§
source§impl Clone for VRFProofBatchable
impl Clone for VRFProofBatchable
source§fn clone(&self) -> VRFProofBatchable
fn clone(&self) -> VRFProofBatchable
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 moresource§impl Debug for VRFProofBatchable
impl Debug for VRFProofBatchable
source§impl PartialEq<VRFProofBatchable> for VRFProofBatchable
impl PartialEq<VRFProofBatchable> for VRFProofBatchable
source§fn eq(&self, other: &VRFProofBatchable) -> bool
fn eq(&self, other: &VRFProofBatchable) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VRFProofBatchable
impl StructuralEq for VRFProofBatchable
impl StructuralPartialEq for VRFProofBatchable
Auto Trait Implementations§
impl RefUnwindSafe for VRFProofBatchable
impl Send for VRFProofBatchable
impl Sync for VRFProofBatchable
impl Unpin for VRFProofBatchable
impl UnwindSafe for VRFProofBatchable
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more