Struct schnorrkel::vrf::VRFProofBatchable
source · [−]pub struct VRFProofBatchable { /* private fields */ }
Expand description
Longer proof of correctness for associated VRF output, which supports batching.
Implementations
sourceimpl 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
) -> VRFProof where
T: SigningTranscript,
pub fn shorten_dleq<T>(
&self,
t: T,
public: &PublicKey,
p: &VRFInOut,
kusama: bool
) -> VRFProof where
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
sourceimpl Clone for VRFProofBatchable
impl Clone for VRFProofBatchable
sourcefn clone(&self) -> VRFProofBatchable
fn clone(&self) -> VRFProofBatchable
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VRFProofBatchable
impl Debug for VRFProofBatchable
sourceimpl<'d> Deserialize<'d> for VRFProofBatchable
impl<'d> Deserialize<'d> for VRFProofBatchable
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'d>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'d>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<VRFProofBatchable> for VRFProofBatchable
impl PartialEq<VRFProofBatchable> for VRFProofBatchable
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &VRFProofBatchable) -> bool
fn ne(&self, other: &VRFProofBatchable) -> bool
This method tests for !=
.
sourceimpl Serialize for VRFProofBatchable
impl Serialize for VRFProofBatchable
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more