Struct ledger_mob_apdu::subaddress_keys::SubaddressKeyReq
source · pub struct SubaddressKeyReq {
pub account_index: u32,
pub subaddress_index: u64,
}
Expand description
Request keys for a given account index and subaddress
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) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§account_index: u32
SLIP-0010 account index
subaddress_index: u64
Subkey index
Implementations§
source§impl SubaddressKeyReq
impl SubaddressKeyReq
sourcepub fn new(account_index: u32, subaddress_index: u64) -> Self
pub fn new(account_index: u32, subaddress_index: u64) -> Self
Create a new SubaddressKeyReq APDU
Trait Implementations§
source§impl ApduStatic for SubaddressKeyReq
impl ApduStatic for SubaddressKeyReq
source§impl Clone for SubaddressKeyReq
impl Clone for SubaddressKeyReq
source§fn clone(&self) -> SubaddressKeyReq
fn clone(&self) -> SubaddressKeyReq
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 SubaddressKeyReq
impl Debug for SubaddressKeyReq
source§impl<'dec> Decode<'dec> for SubaddressKeyReq
impl<'dec> Decode<'dec> for SubaddressKeyReq
source§impl Encode for SubaddressKeyReq
impl Encode for SubaddressKeyReq
source§impl PartialEq<SubaddressKeyReq> for SubaddressKeyReq
impl PartialEq<SubaddressKeyReq> for SubaddressKeyReq
source§fn eq(&self, other: &SubaddressKeyReq) -> bool
fn eq(&self, other: &SubaddressKeyReq) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SubaddressKeyReq
impl StructuralPartialEq for SubaddressKeyReq
Auto Trait Implementations§
impl RefUnwindSafe for SubaddressKeyReq
impl Send for SubaddressKeyReq
impl Sync for SubaddressKeyReq
impl Unpin for SubaddressKeyReq
impl UnwindSafe for SubaddressKeyReq
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