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: &VRFPreOut,
) -> SignatureResult<VRFProof>where
T: VRFSigningTranscript,
pub fn shorten_vrf<T>(
&self,
public: &PublicKey,
t: T,
out: &VRFPreOut,
) -> 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
VRFPreOut
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 for VRFProofBatchable
impl PartialEq 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 StructuralPartialEq for VRFProofBatchable
Auto Trait Implementations§
impl Freeze for VRFProofBatchable
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)