Struct ledger_mob_apdu::tx::TxResponse
source · pub struct TxResponse {
pub ring_index: u8,
pub scalar: Scalar,
/* private fields */
}
Expand description
TX Response APDU, contains a response scalar for a given entry in the signed ring.
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_INDEX | RESERVED |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
/ RESPONSE /
/ (32-byte Ristretto Scalar) /
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§ring_index: u8
Index of returned response
scalar: Scalar
Response scalar
Implementations§
Trait Implementations§
source§impl Clone for TxResponse
impl Clone for TxResponse
source§fn clone(&self) -> TxResponse
fn clone(&self) -> TxResponse
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 TxResponse
impl Debug for TxResponse
source§impl<'dec> Decode<'dec> for TxResponse
impl<'dec> Decode<'dec> for TxResponse
source§impl Encode for TxResponse
impl Encode for TxResponse
source§impl PartialEq<TxResponse> for TxResponse
impl PartialEq<TxResponse> for TxResponse
source§fn eq(&self, other: &TxResponse) -> bool
fn eq(&self, other: &TxResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TxResponse
Auto Trait Implementations§
impl RefUnwindSafe for TxResponse
impl Send for TxResponse
impl Sync for TxResponse
impl Unpin for TxResponse
impl UnwindSafe for TxResponse
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