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
Trait Implementations
impl Archive for ScProofwhere
[u8; 189]: Archive,
impl Archive for ScProofwhere
[u8; 189]: 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 = ArchivedScProof
type Archived = ArchivedScProof
The archived representation of this type. Read more
type Resolver = ScProofResolver
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.
impl Debug for ScProof
impl Debug for ScProof
impl<__D: Fallible + ?Sized> Deserialize<ScProof, __D> for Archived<ScProof>where
[u8; 189]: Archive,
<[u8; 189] as Archive>::Archived: Deserialize<[u8; 189], __D>,
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>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<ScProof, <__D as Fallible>::Error>
Deserializes using the given deserializer