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