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

Struct

ScProof

pub struct ScProof(pub [u8; 189]);
Expand description

A message sent from the device to the server, serving to prove that the device knows the private key corresponding to the public key it claims to own. The message has the following binary format:

----------------------------------------------------------------------------------------
| challenge | deadline | device pubkey | device nonce | bootloader version | signature |
| 32 bytes  | 8 bytes  | 33 bytes      | 32 bytes     | 20 bytes           | 64 bytes  |
----------------------------------------------------------------------------------------

Tuple Fields

0: [u8; 189]

Implementations

impl ScProof

pub const SIZE: usize = 189

Trait Implementations

impl Archive for ScProof
where [u8; 189]: Archive,

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 more

type Archived = ArchivedScProof

The archived representation of this type. Read more

type Resolver = ScProofResolver

The resolver for this type. It must contain all the additional information from serializing needed to make the archived type from the normal type.

fn resolve(&self, resolver: Self::Resolver, out: Place<Self::Archived>)

Creates the archived version of this value at the given position and writes it to the given output. Read more

impl Debug for ScProof

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

impl<__D: Fallible + ?Sized> Deserialize<ScProof, __D> for Archived<ScProof>
where [u8; 189]: Archive, <[u8; 189] as Archive>::Archived: Deserialize<[u8; 189], __D>,

fn deserialize( &self, deserializer: &mut __D, ) -> Result<ScProof, <__D as Fallible>::Error>

Deserializes using the given deserializer

impl<__S: Fallible + ?Sized> Serialize<__S> for ScProof
where [u8; 189]: Serialize<__S>,

fn serialize( &self, serializer: &mut __S, ) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>

Writes the dependencies for the object and returns a resolver that can create the archived type.

Auto Trait Implementations

impl Freeze for ScProof

impl RefUnwindSafe for ScProof

impl Send for ScProof

impl Sync for ScProof

impl Unpin for ScProof

impl UnsafeUnpin for ScProof

impl UnwindSafe for ScProof