pub struct AbsenceProof { /* private fields */ }Expand description
An absence proof: the queried identity is not in the directory; its VRF-derived index holds the empty leaf, and the authentication path to that empty leaf recomputes the directory root.
Implementations§
Source§impl AbsenceProof
impl AbsenceProof
Sourcepub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn to_bytes(&self) -> Vec<u8> ⓘ
Canonical serialization: 0x00 || lp(vrf_proof) || auth_path.
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Parse a canonical absence proof.
§Errors
Returns Error::MalformedConiksProof if the tag, length prefix, or
trailing authentication path are inconsistent.
Trait Implementations§
Source§impl Clone for AbsenceProof
impl Clone for AbsenceProof
Source§fn clone(&self) -> AbsenceProof
fn clone(&self) -> AbsenceProof
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 moreSource§impl Debug for AbsenceProof
impl Debug for AbsenceProof
impl Eq for AbsenceProof
Source§impl PartialEq for AbsenceProof
impl PartialEq for AbsenceProof
Source§fn eq(&self, other: &AbsenceProof) -> bool
fn eq(&self, other: &AbsenceProof) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AbsenceProof
Auto Trait Implementations§
impl Freeze for AbsenceProof
impl RefUnwindSafe for AbsenceProof
impl Send for AbsenceProof
impl Sync for AbsenceProof
impl Unpin for AbsenceProof
impl UnsafeUnpin for AbsenceProof
impl UnwindSafe for AbsenceProof
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