pub struct HostKeyPair {
pub public_key: [u8; 32],
pub private_key: [u8; 64],
}Expand description
Host key pair (Ed25519)
Fields§
§public_key: [u8; 32]Ed25519 public key (32 bytes)
private_key: [u8; 64]Ed25519 private key (64 bytes: seed + public)
Implementations§
Source§impl HostKeyPair
impl HostKeyPair
Trait Implementations§
Source§impl Clone for HostKeyPair
impl Clone for HostKeyPair
Source§fn clone(&self) -> HostKeyPair
fn clone(&self) -> HostKeyPair
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HostKeyPair
impl Debug for HostKeyPair
Source§impl PartialEq for HostKeyPair
impl PartialEq for HostKeyPair
impl Eq for HostKeyPair
impl StructuralPartialEq for HostKeyPair
Auto Trait Implementations§
impl Freeze for HostKeyPair
impl RefUnwindSafe for HostKeyPair
impl Send for HostKeyPair
impl Sync for HostKeyPair
impl Unpin for HostKeyPair
impl UnwindSafe for HostKeyPair
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)