Struct ledger_mob_apdu::tx::TxSetBlinding
source · pub struct TxSetBlinding {
pub blinding: Scalar,
pub output_blinding: Scalar,
}
Expand description
Set blinding for ring signing
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
/ BLINDING /
/ (32-byte Ristretto Scalar) /
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
/ OUTPUT_BLINDING /
/ (32-byte Ristretto Scalar) /
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§blinding: Scalar
§output_blinding: Scalar
Implementations§
source§impl TxSetBlinding
impl TxSetBlinding
sourcepub fn new(blinding: Scalar, output_blinding: Scalar) -> Self
pub fn new(blinding: Scalar, output_blinding: Scalar) -> Self
Crete a new TxSetBlinding object
sourcepub fn hash(&self) -> [u8; 32]
pub fn hash(&self) -> [u8; 32]
Compute hash from TxSetBlinding object
Trait Implementations§
source§impl ApduStatic for TxSetBlinding
impl ApduStatic for TxSetBlinding
source§impl Clone for TxSetBlinding
impl Clone for TxSetBlinding
source§fn clone(&self) -> TxSetBlinding
fn clone(&self) -> TxSetBlinding
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 TxSetBlinding
impl Debug for TxSetBlinding
source§impl<'dec> Decode<'dec> for TxSetBlinding
impl<'dec> Decode<'dec> for TxSetBlinding
source§impl Encode for TxSetBlinding
impl Encode for TxSetBlinding
source§impl PartialEq<TxSetBlinding> for TxSetBlinding
impl PartialEq<TxSetBlinding> for TxSetBlinding
source§fn eq(&self, other: &TxSetBlinding) -> bool
fn eq(&self, other: &TxSetBlinding) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TxSetBlinding
Auto Trait Implementations§
impl RefUnwindSafe for TxSetBlinding
impl Send for TxSetBlinding
impl Sync for TxSetBlinding
impl Unpin for TxSetBlinding
impl UnwindSafe for TxSetBlinding
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