Struct VerificationKey
pub struct VerificationKey(/* private fields */);Expand description
A validated x-only, even-y Lace verification key.
Implementations§
§impl VerificationKey
impl VerificationKey
pub fn from_bytes(bytes: [u8; 32]) -> Result<VerificationKey, CryptoError>
pub fn to_bytes(self) -> [u8; 32]
pub fn verify_digest(self, digest: [u8; 32], mark: Mark) -> bool
pub fn verify_digest(self, digest: [u8; 32], mark: Mark) -> bool
Verify a Lace-009 Mark, including valid zero response scalars.
Trait Implementations§
§impl Clone for VerificationKey
impl Clone for VerificationKey
§fn clone(&self) -> VerificationKey
fn clone(&self) -> VerificationKey
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 VerificationKey
§impl Debug for VerificationKey
impl Debug for VerificationKey
impl Eq for VerificationKey
§impl Hash for VerificationKey
impl Hash for VerificationKey
§impl PartialEq for VerificationKey
impl PartialEq for VerificationKey
impl StructuralPartialEq for VerificationKey
Auto Trait Implementations§
impl Freeze for VerificationKey
impl RefUnwindSafe for VerificationKey
impl Send for VerificationKey
impl Sync for VerificationKey
impl Unpin for VerificationKey
impl UnsafeUnpin for VerificationKey
impl UnwindSafe for VerificationKey
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