pub struct KnotIdentity { /* private fields */ }Expand description
A post-quantum identity. Under the hood it is a hybrid X25519 + ML-KEM-768 keypair (secure if either leg holds); its public key also renders as a unique hyperbolic knot you can show a human to verify out-of-band.
Implementations§
Source§impl KnotIdentity
impl KnotIdentity
Sourcepub fn public_key(&self) -> &[u8] ⓘ
pub fn public_key(&self) -> &[u8] ⓘ
Raw hybrid public key bytes (X25519 pk ‖ ML-KEM ek) — share these.
Sourcepub fn public_knot(&self) -> KnotShape
pub fn public_knot(&self) -> KnotShape
The public key’s knot fingerprint — a renderable 3-D identity badge.
Auto Trait Implementations§
impl Freeze for KnotIdentity
impl RefUnwindSafe for KnotIdentity
impl Send for KnotIdentity
impl Sync for KnotIdentity
impl Unpin for KnotIdentity
impl UnsafeUnpin for KnotIdentity
impl UnwindSafe for KnotIdentity
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