Type Alias schnorrkel::vrf::VRFOutput
source · pub type VRFOutput = VRFPreOut;
👎Deprecated since 0.9.2: Please use VRFPreOut instead of VRFOutput
Expand description
VRF pre-output, possibly unverified.
Aliased Type§
struct VRFOutput(pub [u8; 32]);
Fields§
§0: [u8; 32]
Implementations
source§impl VRFPreOut
impl VRFPreOut
sourcepub fn from_bytes(bytes: &[u8]) -> SignatureResult<VRFPreOut>
pub fn from_bytes(bytes: &[u8]) -> SignatureResult<VRFPreOut>
Construct a VRFPreOut
from a slice of bytes.
sourcepub fn attach_input_hash<T>(
&self,
public: &PublicKey,
t: T,
) -> SignatureResult<VRFInOut>where
T: VRFSigningTranscript,
pub fn attach_input_hash<T>(
&self,
public: &PublicKey,
t: T,
) -> SignatureResult<VRFInOut>where
T: VRFSigningTranscript,
Pair a non-malleable VRF output with the hash of the given transcript.
Trait Implementations
source§impl Ord for VRFPreOut
impl Ord for VRFPreOut
source§impl PartialEq for VRFPreOut
impl PartialEq for VRFPreOut
source§impl PartialOrd for VRFPreOut
impl PartialOrd for VRFPreOut
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more