Struct ledger_mob_apdu::ident::IdentResp
source · pub struct IdentResp {
pub public_key: [u8; 32],
pub signature: [u8; 64],
}
Expand description
Identity key response APDU, contains derived ed25519 public key
Encoding:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
/ PUBLIC_KEY /
/ (32-byte ed25519 public key) /
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
/ SIGNATURE /
/ (64-byte ed25519 signature) /
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§public_key: [u8; 32]
Derived public key
signature: [u8; 64]
Signature over challenge
Implementations§
Trait Implementations§
source§impl PartialEq<IdentResp> for IdentResp
impl PartialEq<IdentResp> for IdentResp
impl Copy for IdentResp
impl StructuralPartialEq for IdentResp
Auto Trait Implementations§
impl RefUnwindSafe for IdentResp
impl Send for IdentResp
impl Sync for IdentResp
impl Unpin for IdentResp
impl UnwindSafe for IdentResp
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
§impl<'a, T> DecodeExt<'a> for Twhere
T: Decode<'a>,
impl<'a, T> DecodeExt<'a> for Twhere T: Decode<'a>,
§fn decode_iter(buff: &'a [u8]) -> DecodeIter<'a, Self::Output>
fn decode_iter(buff: &'a [u8]) -> DecodeIter<'a, Self::Output>
Helper to iterate over decodable objects in a sized buffer. Read more