pub struct AddressWitness<const N: usize, const FP: usize = 32> { /* private fields */ }Expand description
Implementations§
Source§impl<const N: usize, const FP: usize> AddressWitness<N, FP>
impl<const N: usize, const FP: usize> AddressWitness<N, FP>
Sourcepub fn kappa_label(&self) -> KappaLabel<N>
pub fn kappa_label(&self) -> KappaLabel<N>
The κ-label this witness attests.
Sourcepub fn content_fingerprint(&self) -> &[u8; FP]
pub fn content_fingerprint(&self) -> &[u8; FP]
The FP-byte σ-projection content fingerprint (32 for the
Hasher<32> axes, 64 for sha512).
Sourcepub fn verify(&self) -> Result<KappaLabel<N>, VerifyError>
pub fn verify(&self) -> Result<KappaLabel<N>, VerifyError>
Replay the derivation through certify_from_trace (no σ-axis
re-invocation) and confirm the re-derived fingerprint matches.
Returns the attested κ-label on success.
§Errors
VerifyError if the trace is malformed or the re-derived
fingerprint diverges from the source (QS-05 violation).
Trait Implementations§
Auto Trait Implementations§
impl<const N: usize, const FP: usize> Freeze for AddressWitness<N, FP>
impl<const N: usize, const FP: usize> RefUnwindSafe for AddressWitness<N, FP>
impl<const N: usize, const FP: usize> Send for AddressWitness<N, FP>
impl<const N: usize, const FP: usize> Sync for AddressWitness<N, FP>
impl<const N: usize, const FP: usize> Unpin for AddressWitness<N, FP>
impl<const N: usize, const FP: usize> UnsafeUnpin for AddressWitness<N, FP>
impl<const N: usize, const FP: usize> UnwindSafe for AddressWitness<N, FP>
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