pub struct NodeIdentity { /* private fields */ }Implementations§
Source§impl NodeIdentity
impl NodeIdentity
pub fn new(node_id: String) -> NodeIdentity
pub fn from_bytes(node_id: String, secret_bytes: [u8; 32]) -> NodeIdentity
pub fn sign_message(&self, message: &[u8]) -> Vec<u8> ⓘ
pub fn node_id(&self) -> &str
pub fn public_key_bytes(&self) -> [u8; 32]
Auto Trait Implementations§
impl Freeze for NodeIdentity
impl RefUnwindSafe for NodeIdentity
impl Send for NodeIdentity
impl Sync for NodeIdentity
impl Unpin for NodeIdentity
impl UnsafeUnpin for NodeIdentity
impl UnwindSafe for NodeIdentity
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