pub struct SenderKeyDistributionMessage { /* private fields */ }Implementations§
Source§impl SenderKeyDistributionMessage
impl SenderKeyDistributionMessage
pub fn new( message_version: u8, chain_id: u32, iteration: u32, chain_key: [u8; 32], signing_key: PublicKey, ) -> Result<Self>
pub fn message_version(&self) -> u8
pub fn chain_id(&self) -> u32
pub fn iteration(&self) -> u32
pub fn chain_key(&self) -> &[u8; 32]
pub fn signing_key(&self) -> &PublicKey
pub fn serialized(&self) -> &[u8] ⓘ
pub fn into_serialized(self) -> Box<[u8]>
Trait Implementations§
Source§impl AsRef<[u8]> for SenderKeyDistributionMessage
impl AsRef<[u8]> for SenderKeyDistributionMessage
Source§impl Clone for SenderKeyDistributionMessage
impl Clone for SenderKeyDistributionMessage
Source§impl Debug for SenderKeyDistributionMessage
impl Debug for SenderKeyDistributionMessage
Auto Trait Implementations§
impl Freeze for SenderKeyDistributionMessage
impl RefUnwindSafe for SenderKeyDistributionMessage
impl Send for SenderKeyDistributionMessage
impl Sync for SenderKeyDistributionMessage
impl Unpin for SenderKeyDistributionMessage
impl UnsafeUnpin for SenderKeyDistributionMessage
impl UnwindSafe for SenderKeyDistributionMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)