#[non_exhaustive]pub struct ProvisionedKey {
pub principal: Principal,
pub signing_key: SigningKey,
pub secret_key: [u8; 64],
}Expand description
The output of a provision or rotate call — the only time cheers hands out a secret half.
secret_key is the 64-byte PASETO V4 seed || public layout. The caller
(yubaba install flow) writes it to its config dir (mode 0600). Cheers
retains nothing of it: the matching pubkey lives in SigningKey and a
lost secret is unrecoverable — the recovery path is to rotate and accept
a new keypair.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.principal: Principal§signing_key: SigningKey§secret_key: [u8; 64]Trait Implementations§
Source§impl Clone for ProvisionedKey
impl Clone for ProvisionedKey
Auto Trait Implementations§
impl Freeze for ProvisionedKey
impl RefUnwindSafe for ProvisionedKey
impl Send for ProvisionedKey
impl Sync for ProvisionedKey
impl Unpin for ProvisionedKey
impl UnsafeUnpin for ProvisionedKey
impl UnwindSafe for ProvisionedKey
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