pub fn vrf_sign_after_check<CW,PD,F,O>(&self, input: VRFInput, check: F)
     -> Option<(VRFPreOut, VRFProof<VRFPreOut,CW,PD>, PD::Unblinding)>
    where
        CW: NewChallengeOrWitness,
        PD: NewPedersenDeltaOrPublicKey,
        F: FnOnce(&VRFInOut) -> O,
        O: VRFExtraMessage,
    {
        let inout = input.to_inout(self);
        let extra = check(&inout).extra() ?;
        Some(self.vrf_sign_checked(inout,extra))
    }
/// Run our Schnorr VRF on one single input, producing the output
/// and correspodning Schnorr proof, but only if the result first
/// passes some check, which itself returns either a `bool` or else
/// an `Option` of an extra message transcript.
Run our Schnorr VRF on one single input, producing the output
and correspodning Schnorr proof, but only if the result first
passes some check, which itself returns either a `bool` or else
an `Option` of an extra message transcript.
Run our Schnorr VRF on one single input producing the output and correspodning Schnorr proof but only if the result first passes some check which itself returns either a ` bool ` or else an ` Option ` of an extra message transcript .
pub fn vrf_sign_after_check<CW,PD,F,O>(&self, input: VRFInput, check: F)
     -> Option<(VRFPreOut, VRFProof<VRFPreOut,CW,PD>, PD::Unblinding)>
    where
        CW: NewChallengeOrWitness,
        PD: NewPedersenDeltaOrPublicKey,
        F: FnOnce(&VRFInOut) -> O,
        O: VRFExtraMessage,
    {
        let inout = input.to_inout(self);
        let extra = check(&inout).extra() ?;
        Some(self.vrf_sign_checked(inout,extra))
    }
pub fn vrf_sign_after_check < CW , PD , F , O > ( & self , input : VRFInput , check : F ) -> Option < ( VRFPreOut , VRFProof < VRFPreOut , CW , PD > , PD :: Unblinding ) > where CW : NewChallengeOrWitness , PD : NewPedersenDeltaOrPublicKey , F : FnOnce ( & VRFInOut ) -> O , O : VRFExtraMessage , { let inout = input . to_inout ( self ) ; let extra = check ( & inout ) . extra ( ) ? ; Some ( self . vrf_sign_checked ( inout , extra ) ) }
Run our Schnorr VRF on one single input, producing the output
and correspodning Schnorr proof, but only if the result first
passes some check, which itself returns either a `bool` or else
an `Option` of an extra message transcript.
Run our Schnorr VRF on one single input producing the output and correspodning Schnorr proof but only if the result first passes some check which itself returns either a ` bool ` or else an ` Option ` of an extra message transcript .
&self
input
VRFInput
check
F
&self
input
VRFInput
check
F