Struct ledger_mob_apdu::ident::IdentSignReq
source · pub struct IdentSignReq<'a> {
pub identity_index: u32,
pub identity_uri: &'a str,
pub challenge: &'a [u8],
}
Expand description
Request an ed25519 identity for provided URI and index, returning a state object.
See IdentGetReq for fetching the identity and challenge following user approval.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IDENTITY_INDEX |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IDENTITY_LEN | CHALLENGE_LEN | RESERVED |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
/ IDENTITY_URI /
/ (variable length) /
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
/ CHALLLENGE /
/ (variable length) /
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§identity_index: u32
SLIP-0017 account index (note this differs from SLIP-0010)
identity_uri: &'a str
Identity URI
challenge: &'a [u8]
Challenge to be signed
Implementations§
Trait Implementations§
source§impl<'a> ApduStatic for IdentSignReq<'a>
impl<'a> ApduStatic for IdentSignReq<'a>
source§impl<'a> Clone for IdentSignReq<'a>
impl<'a> Clone for IdentSignReq<'a>
source§fn clone(&self) -> IdentSignReq<'a>
fn clone(&self) -> IdentSignReq<'a>
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<'a> Debug for IdentSignReq<'a>
impl<'a> Debug for IdentSignReq<'a>
source§impl<'a> Decode<'a> for IdentSignReq<'a>
impl<'a> Decode<'a> for IdentSignReq<'a>
source§impl<'a> Encode for IdentSignReq<'a>
impl<'a> Encode for IdentSignReq<'a>
source§impl<'a> PartialEq<IdentSignReq<'a>> for IdentSignReq<'a>
impl<'a> PartialEq<IdentSignReq<'a>> for IdentSignReq<'a>
source§fn eq(&self, other: &IdentSignReq<'a>) -> bool
fn eq(&self, other: &IdentSignReq<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for IdentSignReq<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for IdentSignReq<'a>
impl<'a> Send for IdentSignReq<'a>
impl<'a> Sync for IdentSignReq<'a>
impl<'a> Unpin for IdentSignReq<'a>
impl<'a> UnwindSafe for IdentSignReq<'a>
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