Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Struct

Security

pub struct Security<P: CheckedPermissions> { /* private fields */ }

Implementations

impl<P: CheckedPermissions> Security<P>

pub fn app_seed(&self) -> Result<AppSeed, AccessDenied>
where P: MessageAllowed<GetAppSeed>,

Permission: os/security / GetAppSeed

Permission group: device-secrets.app-scoped-seed

Required signature: thirdParty

Approval: grantOnFirstUse

pub fn os_version_info(&self) -> Result<Option<OsVersionInfo>, AccessDenied>
where P: MessageAllowed<GetOsVersionInfo>,

Permission: os/security / GetOsVersionInfo

Permission group: device-secrets.general-status

Required signature: thirdParty

Approval: autoAllow

pub fn bootloader_build_date(&self) -> Result<Option<u64>, AccessDenied>
where P: MessageAllowed<GetBootloaderBuildDate>,

Permission: os/security / GetBootloaderBuildDate

Permission group: device-secrets.general-status

Required signature: thirdParty

Approval: autoAllow

pub fn device_id(&self) -> Result<DeviceId, GetDeviceIdError>
where P: MessageAllowed<GetDeviceId>,

Permission: os/security / GetDeviceId

Permission group: device-secrets.general-status

Required signature: thirdParty

Approval: autoAllow

pub fn get_random(&self) -> Result<[u8; 32], AccessDenied>
where P: MessageAllowed<GetRandom>,

Permission: os/security / GetRandom

Permission group: device-secrets.general-status

Required signature: thirdParty

Approval: autoAllow

Trait Implementations

impl<P: Default + CheckedPermissions> Default for Security<P>

fn default() -> Security<P>

Returns the “default value” for a type. Read more

Auto Trait Implementations

impl<P> Freeze for Security<P>

impl<P> RefUnwindSafe for Security<P>

impl<P> Send for Security<P>

impl<P> Sync for Security<P>

impl<P> Unpin for Security<P>

impl<P> UnsafeUnpin for Security<P>

impl<P> UnwindSafe for Security<P>