Struct ledger_mob_apdu::key_image::KeyImageResp
source · pub struct KeyImageResp {
pub account_index: u32,
pub subaddress_index: u64,
pub key_image: KeyImage,
}
Expand description
Key image response APDU
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| WALLET_INDEX |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SUBADDRESS_INDEX |
| (8-byte u64) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
/ KEY_IMAGE /
/ (32-byte compressed Ristretto point) /
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§account_index: u32
SLIP-0010 account index
subaddress_index: u64
Subaddress index
key_image: KeyImage
Key Image (compressed point)
Implementations§
Trait Implementations§
source§impl Clone for KeyImageResp
impl Clone for KeyImageResp
source§fn clone(&self) -> KeyImageResp
fn clone(&self) -> KeyImageResp
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KeyImageResp
impl Debug for KeyImageResp
source§impl<'dec> Decode<'dec> for KeyImageResp
impl<'dec> Decode<'dec> for KeyImageResp
source§impl Encode for KeyImageResp
impl Encode for KeyImageResp
source§impl PartialEq<KeyImageResp> for KeyImageResp
impl PartialEq<KeyImageResp> for KeyImageResp
source§fn eq(&self, other: &KeyImageResp) -> bool
fn eq(&self, other: &KeyImageResp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for KeyImageResp
impl StructuralPartialEq for KeyImageResp
Auto Trait Implementations§
impl RefUnwindSafe for KeyImageResp
impl Send for KeyImageResp
impl Sync for KeyImageResp
impl Unpin for KeyImageResp
impl UnwindSafe for KeyImageResp
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