Struct schnorrkel::vrf::VRFProofBatchable
source · [−]pub struct VRFProofBatchable { /* private fields */ }
Expand description
Longer proof of correctness for associated VRF output, which supports batching.
Implementations
Construct a VRFProofBatchable
from a slice of bytes.
pub 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
pub 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more