pub struct UserKey { /* private fields */ }Expand description
Implementations§
Source§impl UserKey
impl UserKey
Sourcepub fn public(&self) -> UserPublic
pub fn public(&self) -> UserPublic
Public verifying half of the key — safe to share with peers.
Sourcepub fn fingerprint(&self) -> Fingerprint
pub fn fingerprint(&self) -> Fingerprint
BLAKE3 fingerprint of the public key bytes.
Sourcepub fn sign(&self, message: &[u8]) -> Signature
pub fn sign(&self, message: &[u8]) -> Signature
Sign an arbitrary message with the user’s root key.
In practice this is called sparingly — typically just to issue agent certificates and the one-time GitHub binding.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UserKey
impl RefUnwindSafe for UserKey
impl Send for UserKey
impl Sync for UserKey
impl Unpin for UserKey
impl UnsafeUnpin for UserKey
impl UnwindSafe for UserKey
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