pub struct VrfPublicKey(pub [u8; 32]);Expand description
VRF public key (32 bytes - compressed point)
Tuple Fields§
§0: [u8; 32]Implementations§
Source§impl VrfPublicKey
impl VrfPublicKey
Sourcepub fn validate(&self) -> Result<RistrettoPoint, VerificationError>
pub fn validate(&self) -> Result<RistrettoPoint, VerificationError>
Validate public key according to RFC 9381 Check for zero point and ensure valid curve point
Trait Implementations§
Source§impl Clone for VrfPublicKey
impl Clone for VrfPublicKey
Source§fn clone(&self) -> VrfPublicKey
fn clone(&self) -> VrfPublicKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VrfPublicKey
Source§impl Debug for VrfPublicKey
impl Debug for VrfPublicKey
impl Eq for VrfPublicKey
Source§impl PartialEq for VrfPublicKey
impl PartialEq for VrfPublicKey
Source§fn eq(&self, other: &VrfPublicKey) -> bool
fn eq(&self, other: &VrfPublicKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VrfPublicKey
Auto Trait Implementations§
impl Freeze for VrfPublicKey
impl RefUnwindSafe for VrfPublicKey
impl Send for VrfPublicKey
impl Sync for VrfPublicKey
impl Unpin for VrfPublicKey
impl UnsafeUnpin for VrfPublicKey
impl UnwindSafe for VrfPublicKey
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