Struct network_clique::mock::MockSecretKey
source · pub struct MockSecretKey([u8; 4]);
Expand description
A mock secret key that is able to sign messages.
Tuple Fields§
§0: [u8; 4]
Trait Implementations§
source§impl Clone for MockSecretKey
impl Clone for MockSecretKey
source§fn clone(&self) -> MockSecretKey
fn clone(&self) -> MockSecretKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MockSecretKey
impl Debug for MockSecretKey
source§impl Hash for MockSecretKey
impl Hash for MockSecretKey
source§impl PartialEq for MockSecretKey
impl PartialEq for MockSecretKey
source§fn eq(&self, other: &MockSecretKey) -> bool
fn eq(&self, other: &MockSecretKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SecretKey for MockSecretKey
impl SecretKey for MockSecretKey
type Signature = MockSignature
type PublicKey = MockPublicKey
source§fn sign(&self, message: &[u8]) -> Self::Signature
fn sign(&self, message: &[u8]) -> Self::Signature
Produce a signature for the provided message.
source§fn public_key(&self) -> Self::PublicKey
fn public_key(&self) -> Self::PublicKey
Return the associated public key.
impl Eq for MockSecretKey
impl StructuralPartialEq for MockSecretKey
Auto Trait Implementations§
impl RefUnwindSafe for MockSecretKey
impl Send for MockSecretKey
impl Sync for MockSecretKey
impl Unpin for MockSecretKey
impl UnwindSafe for MockSecretKey
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.