Struct ledger_mob_apdu::wallet_keys::WalletKeyResp
source · pub struct WalletKeyResp {
pub account_index: u32,
pub view_private: RootViewPrivate,
pub spend_public: RootSpendPublic,
}
Expand description
Wallet key response APDU
Contains root view private and spend public keys for application use.
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) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
/ ROOT_VIEW_PRIVATE_KEY /
/ (32-byte Ristretto Private Key) /
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
/ ROOT_SPEND_PUBLIC_KEY /
/ (32-byte Ristretto Public Key) /
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§account_index: u32
SLIP-0010 account index
view_private: RootViewPrivate
View Private Key
spend_public: RootSpendPublic
Spend public key
Implementations§
source§impl WalletKeyResp
impl WalletKeyResp
sourcepub fn new(
account_index: u32,
view_private: RootViewPrivate,
spend_public: RootSpendPublic
) -> Self
pub fn new( account_index: u32, view_private: RootViewPrivate, spend_public: RootSpendPublic ) -> Self
Create a new WalletKeyResp
APDU
Trait Implementations§
source§impl Clone for WalletKeyResp
impl Clone for WalletKeyResp
source§fn clone(&self) -> WalletKeyResp
fn clone(&self) -> WalletKeyResp
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 WalletKeyResp
impl Debug for WalletKeyResp
source§impl<'dec> Decode<'dec> for WalletKeyResp
impl<'dec> Decode<'dec> for WalletKeyResp
source§impl Encode for WalletKeyResp
impl Encode for WalletKeyResp
source§impl PartialEq<WalletKeyResp> for WalletKeyResp
impl PartialEq<WalletKeyResp> for WalletKeyResp
source§fn eq(&self, other: &WalletKeyResp) -> bool
fn eq(&self, other: &WalletKeyResp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WalletKeyResp
Auto Trait Implementations§
impl RefUnwindSafe for WalletKeyResp
impl Send for WalletKeyResp
impl Sync for WalletKeyResp
impl Unpin for WalletKeyResp
impl UnwindSafe for WalletKeyResp
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