Struct ledger_mob_apdu::tx::TxMemoSig
source · pub struct TxMemoSig {
pub state: TxState,
pub value: u16,
pub digest: Digest,
pub hmac: [u8; 16],
}
Expand description
Memo signature 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| TX_STATE | VALUE |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| TX_DIGEST |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
| MEMO_HMAC |
| (16-byte HMAC) |
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§state: TxState
Current transaction engine state
value: u16
Value associated with current state (zero otherwise)
digest: Digest
Transaction state digest
hmac: [u8; 16]
Memo HMAC
Implementations§
Trait Implementations§
source§impl PartialEq<TxMemoSig> for TxMemoSig
impl PartialEq<TxMemoSig> for TxMemoSig
impl StructuralPartialEq for TxMemoSig
Auto Trait Implementations§
impl RefUnwindSafe for TxMemoSig
impl Send for TxMemoSig
impl Sync for TxMemoSig
impl Unpin for TxMemoSig
impl UnwindSafe for TxMemoSig
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