Struct
AppSeed
pub struct AppSeed(/* private fields */);Expand description
The 32-byte per-app seed the security element derives for a calling app.
A distinct type (annotated like Seed) so the zeroize-on-drop treatment follows the
bytes wherever an AppSeed flows, and a call site can’t quietly pass an unrelated array
where a seed is expected. Raw [u8; 32] copies a caller makes from as_bytes still escape
scrubbing (Rust move semantics), so this narrows the exposure window rather than closing it.
Implementations
Trait Implementations
impl Archive for AppSeedwhere
[u8; 32]: Archive,
impl Archive for AppSeedwhere
[u8; 32]: Archive,
const COPY_OPTIMIZATION: CopyOptimization<Self>
const COPY_OPTIMIZATION: CopyOptimization<Self>
An optimization flag that allows the bytes of this type to be copied
directly to a writer instead of calling
serialize. Read moretype Archived = ArchivedAppSeed
type Archived = ArchivedAppSeed
The archived representation of this type. Read more
type Resolver = AppSeedResolver
type Resolver = AppSeedResolver
The resolver for this type. It must contain all the additional
information from serializing needed to make the archived type from
the normal type.
impl Clone for AppSeed
impl Clone for AppSeed
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<__D: Fallible + ?Sized> Deserialize<AppSeed, __D> for Archived<AppSeed>where
[u8; 32]: Archive,
<[u8; 32] as Archive>::Archived: Deserialize<[u8; 32], __D>,
impl<__D: Fallible + ?Sized> Deserialize<AppSeed, __D> for Archived<AppSeed>where
[u8; 32]: Archive,
<[u8; 32] as Archive>::Archived: Deserialize<[u8; 32], __D>,
fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<AppSeed, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<AppSeed, <__D as Fallible>::Error>
Deserializes using the given deserializer