pub struct SessionKey { /* private fields */ }Expand description
A session key delegated from a root key.
Used for day-to-day operations without exposing the root key.
§Security
- The inner
SigningKeyautomatically zeroizes secret key bytes on drop. - Session keys should be short-lived and rotated frequently.
- The
Debugimplementation only shows public info (root DID and pubkey fingerprint).
Implementations§
Source§impl SessionKey
impl SessionKey
Sourcepub fn verifying_key(&self) -> VerifyingKey
pub fn verifying_key(&self) -> VerifyingKey
Get the public verifying key.
Sourcepub fn public_key_base58(&self) -> String
pub fn public_key_base58(&self) -> String
Get the public key as base58.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SessionKey
impl RefUnwindSafe for SessionKey
impl Send for SessionKey
impl Sync for SessionKey
impl Unpin for SessionKey
impl UnwindSafe for SessionKey
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