pub struct PrivateIdentity {
pub public: PublicIdentity,
pub peer_id: PeerId,
/* private fields */
}Fields§
§public: PublicIdentity§peer_id: PeerIdImplementations§
Source§impl PrivateIdentity
impl PrivateIdentity
pub fn generate() -> Self
pub fn from_secrets(ed25519: [u8; 32], x25519: [u8; 32]) -> Self
pub fn signing_key(&self) -> SigningKey
pub fn x25519_secret(&self) -> StaticSecret
pub fn ed25519_bytes(&self) -> [u8; 32]
pub fn x25519_bytes(&self) -> [u8; 32]
Trait Implementations§
Source§impl Drop for PrivateIdentity
impl Drop for PrivateIdentity
Auto Trait Implementations§
impl Freeze for PrivateIdentity
impl RefUnwindSafe for PrivateIdentity
impl Send for PrivateIdentity
impl Sync for PrivateIdentity
impl Unpin for PrivateIdentity
impl UnsafeUnpin for PrivateIdentity
impl UnwindSafe for PrivateIdentity
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