Struct ledger_mob_apdu::key_image::KeyImageReq
source · pub struct KeyImageReq {
pub account_index: u32,
pub subaddress_index: u64,
pub txout_public_key: TxOutPublic,
}
Expand description
Resolve a key image for a specific subaddress and txout_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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| WALLET_INDEX |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SUBADDRESS_INDEX |
| (8-bytes) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
/ TXOUT_PUBLIC_KEY /
/ (32-byte Ristretto Public Key) /
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§account_index: u32
SLIP-0010 account index
subaddress_index: u64
Subkey index
txout_public_key: TxOutPublic
TX_OUT public key
Implementations§
Trait Implementations§
source§impl ApduStatic for KeyImageReq
impl ApduStatic for KeyImageReq
source§impl Clone for KeyImageReq
impl Clone for KeyImageReq
source§fn clone(&self) -> KeyImageReq
fn clone(&self) -> KeyImageReq
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 KeyImageReq
impl Debug for KeyImageReq
source§impl<'dec> Decode<'dec> for KeyImageReq
impl<'dec> Decode<'dec> for KeyImageReq
source§impl Encode for KeyImageReq
impl Encode for KeyImageReq
source§impl PartialEq<KeyImageReq> for KeyImageReq
impl PartialEq<KeyImageReq> for KeyImageReq
source§fn eq(&self, other: &KeyImageReq) -> bool
fn eq(&self, other: &KeyImageReq) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for KeyImageReq
Auto Trait Implementations§
impl RefUnwindSafe for KeyImageReq
impl Send for KeyImageReq
impl Sync for KeyImageReq
impl Unpin for KeyImageReq
impl UnwindSafe for KeyImageReq
Blanket Implementations§
§impl<'a, T> ApduReq<'a> for Twhere
T: EncDec<'a, ApduError> + ApduStatic,
impl<'a, T> ApduReq<'a> for Twhere T: EncDec<'a, ApduError> + ApduStatic,
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