pub struct WfbTxKeypair {
pub tx_secretkey: [u8; 32],
pub rx_publickey: [u8; 32],
}Expand description
Key material used by the ground station when transmitting WFB uplink data.
This is the inverse of WfbKeypair: it contains the transmitter secret key
and the receiver public key needed to encrypt WFB session packets.
Fields§
§tx_secretkey: [u8; 32]Secret key for the local transmitter.
rx_publickey: [u8; 32]Public key for the remote receiver.
Implementations§
Source§impl WfbTxKeypair
impl WfbTxKeypair
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, WfbError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, WfbError>
Parse a concatenated transmitter-secret + receiver-public keypair.
Trait Implementations§
Source§impl Clone for WfbTxKeypair
impl Clone for WfbTxKeypair
Source§fn clone(&self) -> WfbTxKeypair
fn clone(&self) -> WfbTxKeypair
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WfbTxKeypair
Source§impl Debug for WfbTxKeypair
impl Debug for WfbTxKeypair
impl Eq for WfbTxKeypair
Source§impl PartialEq for WfbTxKeypair
impl PartialEq for WfbTxKeypair
Source§fn eq(&self, other: &WfbTxKeypair) -> bool
fn eq(&self, other: &WfbTxKeypair) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WfbTxKeypair
Auto Trait Implementations§
impl Freeze for WfbTxKeypair
impl RefUnwindSafe for WfbTxKeypair
impl Send for WfbTxKeypair
impl Sync for WfbTxKeypair
impl Unpin for WfbTxKeypair
impl UnsafeUnpin for WfbTxKeypair
impl UnwindSafe for WfbTxKeypair
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