pub struct SubaddressKeyResp {
pub account_index: u32,
pub subaddress_index: u64,
pub view_private: SubaddressViewPrivate,
pub spend_public: SubaddressSpendPublic,
}
Expand description
Subaddress key response
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) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
/ SUBADDR_VIEW_PRIVATE_KEY /
/ (32-byte Ristretto Private Key) /
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
/ SUBADDR_SPEND_PUBLIC_KEY /
/ (32-byte Ristretto Public Key) /
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§account_index: u32
SLIP-0010 account index
subaddress_index: u64
Subaddress index
view_private: SubaddressViewPrivate
Vew Private Key
spend_public: SubaddressSpendPublic
Spend public key
Implementations§
source§impl SubaddressKeyResp
impl SubaddressKeyResp
sourcepub fn new(
account_index: u32,
subaddress_index: u64,
view_private: SubaddressViewPrivate,
spend_public: SubaddressSpendPublic
) -> Self
pub fn new( account_index: u32, subaddress_index: u64, view_private: SubaddressViewPrivate, spend_public: SubaddressSpendPublic ) -> Self
Create a new SubaddressKeyResp
APDU
Trait Implementations§
source§impl Clone for SubaddressKeyResp
impl Clone for SubaddressKeyResp
source§fn clone(&self) -> SubaddressKeyResp
fn clone(&self) -> SubaddressKeyResp
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 SubaddressKeyResp
impl Debug for SubaddressKeyResp
source§impl<'dec> Decode<'dec> for SubaddressKeyResp
impl<'dec> Decode<'dec> for SubaddressKeyResp
source§impl Encode for SubaddressKeyResp
impl Encode for SubaddressKeyResp
source§impl PartialEq<SubaddressKeyResp> for SubaddressKeyResp
impl PartialEq<SubaddressKeyResp> for SubaddressKeyResp
source§fn eq(&self, other: &SubaddressKeyResp) -> bool
fn eq(&self, other: &SubaddressKeyResp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SubaddressKeyResp
Auto Trait Implementations§
impl RefUnwindSafe for SubaddressKeyResp
impl Send for SubaddressKeyResp
impl Sync for SubaddressKeyResp
impl Unpin for SubaddressKeyResp
impl UnwindSafe for SubaddressKeyResp
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