Struct ledger_mob_apdu::tx::TxInit
source · pub struct TxInit {
pub num_rings: u8,
pub account_index: u32,
/* private fields */
}
Expand description
Transaction initialisation APDU, sets up a transaction for execution
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| NUM_RINGS | RESERVED |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ACCOUNT_INDEX |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| TOKEN_ID |
| (u64, 8-byte) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§num_rings: u8
Number of rings to be signed
account_index: u32
Account index for SLIP-010 derivation
Implementations§
Trait Implementations§
source§impl ApduStatic for TxInit
impl ApduStatic for TxInit
source§impl PartialEq<TxInit> for TxInit
impl PartialEq<TxInit> for TxInit
impl StructuralPartialEq for TxInit
Auto Trait Implementations§
impl RefUnwindSafe for TxInit
impl Send for TxInit
impl Sync for TxInit
impl Unpin for TxInit
impl UnwindSafe for TxInit
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