Struct stacks_common::util::vrf::VRFProof
source · pub struct VRFProof { /* private fields */ }
Implementations§
source§impl VRFProof
impl VRFProof
pub fn Gamma(&self) -> &EdwardsPoint
pub fn s(&self) -> &ed25519_Scalar
pub fn c(&self) -> &ed25519_Scalar
pub fn check_c(c: &ed25519_Scalar) -> bool
pub fn empty() -> VRFProof
pub fn new( Gamma: EdwardsPoint, c: ed25519_Scalar, s: ed25519_Scalar ) -> Result<VRFProof, Error>
pub fn from_slice(bytes: &[u8]) -> Option<VRFProof>
pub fn from_bytes(bytes: &[u8]) -> Option<VRFProof>
pub fn from_hex(hex_str: &str) -> Option<VRFProof>
pub fn to_bytes(&self) -> [u8; 80]
pub fn to_hex(&self) -> String
Trait Implementations§
source§impl<'de> Deserialize<'de> for VRFProof
impl<'de> Deserialize<'de> for VRFProof
source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<VRFProof, D::Error>
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
impl FromSql for VRFProof
source§fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Converts SQLite value into Rust value.
source§impl PartialEq<VRFProof> for VRFProof
impl PartialEq<VRFProof> for VRFProof
source§impl StacksMessageCodec for VRFProof
impl StacksMessageCodec for VRFProof
source§fn consensus_serialize<W: Write>(&self, fd: &mut W) -> Result<(), CodecError>
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
fn consensus_deserialize<R: Read>(fd: &mut R) -> Result<VRFProof, CodecError>
source§impl ToSql for VRFProof
impl ToSql for VRFProof
source§fn to_sql(&self) -> Result<ToSqlOutput<'_>>
fn to_sql(&self) -> Result<ToSqlOutput<'_>>
Converts Rust value to SQLite value
impl Eq for VRFProof
impl StructuralEq for VRFProof
impl StructuralPartialEq for VRFProof
Auto Trait Implementations§
impl RefUnwindSafe for VRFProof
impl Send for VRFProof
impl Sync for VRFProof
impl Unpin for VRFProof
impl UnwindSafe for VRFProof
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more