pub struct VRFProof { /* private fields */ }

Implementations§

source§

impl VRFProof

source

pub fn Gamma(&self) -> &EdwardsPoint

source

pub fn s(&self) -> &ed25519_Scalar

source

pub fn c(&self) -> &ed25519_Scalar

source

pub fn check_c(c: &ed25519_Scalar) -> bool

source

pub fn empty() -> VRFProof

source

pub fn new( Gamma: EdwardsPoint, c: ed25519_Scalar, s: ed25519_Scalar ) -> Result<VRFProof, Error>

source

pub fn from_slice(bytes: &[u8]) -> Option<VRFProof>

source

pub fn from_bytes(bytes: &[u8]) -> Option<VRFProof>

source

pub fn from_hex(hex_str: &str) -> Option<VRFProof>

source

pub fn to_bytes(&self) -> [u8; 80]

source

pub fn to_hex(&self) -> String

Trait Implementations§

source§

impl Clone for VRFProof

source§

fn clone(&self) -> VRFProof

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for VRFProof

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for VRFProof

source§

fn deserialize<D: Deserializer<'de>>(d: D) -> Result<VRFProof, D::Error>

Deserialize this value from the given Serde deserializer. Read more
source§

impl FromSql for VRFProof

source§

fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>

Converts SQLite value into Rust value.
source§

impl Hash for VRFProof

source§

fn hash<H: Hasher>(&self, h: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq<VRFProof> for VRFProof

source§

fn eq(&self, other: &VRFProof) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for VRFProof

source§

fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl StacksMessageCodec for VRFProof

source§

fn consensus_serialize<W: Write>(&self, fd: &mut W) -> Result<(), CodecError>

serialize implementors should never error unless there is an underlying failure in writing to the fd
source§

fn consensus_deserialize<R: Read>(fd: &mut R) -> Result<VRFProof, CodecError>

source§

fn serialize_to_vec(&self) -> Vec<u8>where Self: Sized,

Convenience for serialization to a vec. this function unwraps any underlying serialization error
source§

impl ToSql for VRFProof

source§

fn to_sql(&self) -> Result<ToSqlOutput<'_>>

Converts Rust value to SQLite value
source§

impl Eq for VRFProof

source§

impl StructuralEq for VRFProof

source§

impl StructuralPartialEq for VRFProof

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CallHasher for Twhere T: Hash + ?Sized,

§

default fn get_hash<H, B>(value: &H, build_hasher: &B) -> u64where H: Hash + ?Sized, B: BuildHasher,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,

source§

impl<T> SendSyncUnwindSafe for Twhere T: Send + Sync + UnwindSafe + ?Sized,