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 more