Struct ledger_mob_apdu::tx::TxRingInit
source · pub struct TxRingInit {
pub ring_size: u8,
pub real_index: u8,
pub flags: TxRingInitFlags,
pub subaddress_index: u64,
pub value: u64,
pub token_id: u64,
pub onetime_private_key: TxOnetimeKey,
/* private fields */
}
Expand description
Start a ring signing operation
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| RING_SIZE | REAL_INDEX | RESERVED |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SUBADDRESS_INDEX |
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| VALUE |
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§ring_size: u8
Size of ring to be signed
real_index: u8
Index of real tx_in in ring
flags: TxRingInitFlags
Flags for ring init message
subaddress_index: u64
Subaddress of real tx_in, used for onetime_private_key recovery
value: u64
Ring value
token_id: u64
Ring token_id
onetime_private_key: TxOnetimeKey
One-time private key for pre-signed inputs etc. Zero if HAS_ONETIME_PRIVATE_KEY is not set
Implementations§
Trait Implementations§
source§impl ApduStatic for TxRingInit
impl ApduStatic for TxRingInit
source§impl Clone for TxRingInit
impl Clone for TxRingInit
source§fn clone(&self) -> TxRingInit
fn clone(&self) -> TxRingInit
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 TxRingInit
impl Debug for TxRingInit
source§impl<'dec> Decode<'dec> for TxRingInit
impl<'dec> Decode<'dec> for TxRingInit
source§impl Encode for TxRingInit
impl Encode for TxRingInit
source§impl PartialEq<TxRingInit> for TxRingInit
impl PartialEq<TxRingInit> for TxRingInit
source§fn eq(&self, other: &TxRingInit) -> bool
fn eq(&self, other: &TxRingInit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TxRingInit
Auto Trait Implementations§
impl RefUnwindSafe for TxRingInit
impl Send for TxRingInit
impl Sync for TxRingInit
impl Unpin for TxRingInit
impl UnwindSafe for TxRingInit
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