pub struct DummyIdentity { /* private fields */ }Expand description
Minimal NodeIdentity implementation used by tests and simulations.
This type is not suitable for production use.
Implementations§
Trait Implementations§
Source§impl Clone for DummyIdentity
impl Clone for DummyIdentity
Source§fn clone(&self) -> DummyIdentity
fn clone(&self) -> DummyIdentity
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 NodeIdentity for DummyIdentity
impl NodeIdentity for DummyIdentity
type Error = ()
Source§fn public_key(&self) -> &PublicKey
fn public_key(&self) -> &PublicKey
Return the long-term Ed25519 public key for this identity.
Source§async fn sign(&self, _message: &[u8]) -> Result<[u8; 64], Self::Error>
async fn sign(&self, _message: &[u8]) -> Result<[u8; 64], Self::Error>
Sign an arbitrary message.
Source§async fn agree(&self, peer: &PublicKey) -> Result<SharedSecret, Self::Error>
async fn agree(&self, peer: &PublicKey) -> Result<SharedSecret, Self::Error>
Perform X25519-style key agreement with a peer public key.
Source§fn hint(&self) -> NodeHint
fn hint(&self) -> NodeHint
Return the three-byte node hint derived from
public_key.Auto Trait Implementations§
impl Freeze for DummyIdentity
impl RefUnwindSafe for DummyIdentity
impl Send for DummyIdentity
impl Sync for DummyIdentity
impl Unpin for DummyIdentity
impl UnwindSafe for DummyIdentity
Blanket Implementations§
§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)