pub struct SeedAuthority { /* private fields */ }Expand description
Private seed material and pinned exact genesis, validated against package authority. Construction alone is not durable. The host must save before making a request.
Implementations§
Source§impl SeedAuthority
impl SeedAuthority
Sourcepub fn sign_authenticated_publication(
&self,
descriptor: &[u8],
key: &LocalSharedStatePackageKey,
) -> Result<Publication>
pub fn sign_authenticated_publication( &self, descriptor: &[u8], key: &LocalSharedStatePackageKey, ) -> Result<Publication>
Signs publication intent for a descriptor whose package the caller
has already authenticated under key against this genesis.
Source§impl SeedAuthority
impl SeedAuthority
pub fn generate( context: LocalSharedStatePackageContext, key: &LocalSharedStatePackageKey, setup: [u8; 32], ) -> Result<Self>
pub fn genesis(&self) -> &Genesis
Sourcepub fn protected_signing_seed(&self) -> &Secret
pub fn protected_signing_seed(&self) -> &Secret
Borrows signing material only for authenticated device operations or protected storage. Never place these bytes in logs, task data or ordinary backups.
Sourcepub fn protected_recipient_key(&self) -> &Secret
pub fn protected_recipient_key(&self) -> &Secret
Borrows recipient material only for authenticated device operations or protected storage. Never place these bytes in logs, task data or ordinary backups.
pub fn bearer(&self) -> &Secret
Sourcepub fn protected_storage_bytes(&self) -> Zeroizing<Vec<u8>>
pub fn protected_storage_bytes(&self) -> Zeroizing<Vec<u8>>
Exact protected-storage representation, never SQLite or ordinary backups.
pub fn from_protected_storage( raw: &[u8], context: LocalSharedStatePackageContext, key: &LocalSharedStatePackageKey, ) -> Result<Self>
pub fn validate( &self, context: LocalSharedStatePackageContext, key: &LocalSharedStatePackageKey, ) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SeedAuthority
impl RefUnwindSafe for SeedAuthority
impl Send for SeedAuthority
impl Sync for SeedAuthority
impl Unpin for SeedAuthority
impl UnsafeUnpin for SeedAuthority
impl UnwindSafe for SeedAuthority
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