Struct oasis_runtime_sdk::testing::keymanager::MockKeyManagerClient
source · pub struct MockKeyManagerClient { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Clone for MockKeyManagerClient
impl Clone for MockKeyManagerClient
source§impl Default for MockKeyManagerClient
impl Default for MockKeyManagerClient
source§fn default() -> MockKeyManagerClient
fn default() -> MockKeyManagerClient
Returns the “default value” for a type. Read more
source§impl KeyManager for MockKeyManagerClient
impl KeyManager for MockKeyManagerClient
source§fn runtime_id(&self) -> Option<Namespace>
fn runtime_id(&self) -> Option<Namespace>
Key manager runtime identifier this client is connected to. It may be
None
in case the
identifier is not known yet (e.g. the client has not yet been initialized). Read moresource§fn runtime_signing_key(&self) -> Option<PublicKey>
fn runtime_signing_key(&self) -> Option<PublicKey>
Key manager runtime signing key used to sign messages from the key manager. Read more
source§fn clear_cache(&self)
fn clear_cache(&self)
Clear local key cache. Read more
source§fn get_or_create_keys(
&self,
key_pair_id: KeyPairId,
) -> Result<KeyPair, KeyManagerError>
fn get_or_create_keys( &self, key_pair_id: KeyPairId, ) -> Result<KeyPair, KeyManagerError>
Get or create named key pair. Read more
source§fn get_public_key(
&self,
_key_pair_id: KeyPairId,
) -> Result<SignedPublicKey, KeyManagerError>
fn get_public_key( &self, _key_pair_id: KeyPairId, ) -> Result<SignedPublicKey, KeyManagerError>
Get public key for a key pair id. Read more
source§fn get_or_create_ephemeral_keys(
&self,
key_pair_id: KeyPairId,
_epoch: EpochTime,
) -> Result<KeyPair, KeyManagerError>
fn get_or_create_ephemeral_keys( &self, key_pair_id: KeyPairId, _epoch: EpochTime, ) -> Result<KeyPair, KeyManagerError>
Get or create named ephemeral key pair for given epoch. Read more
source§fn get_public_ephemeral_key(
&self,
_key_pair_id: KeyPairId,
_epoch: EpochTime,
) -> Result<SignedPublicKey, KeyManagerError>
fn get_public_ephemeral_key( &self, _key_pair_id: KeyPairId, _epoch: EpochTime, ) -> Result<SignedPublicKey, KeyManagerError>
Get ephemeral public key for an epoch and a key pair id. Read more
fn box_clone(&self) -> Box<dyn KeyManager>
Auto Trait Implementations§
impl !Freeze for MockKeyManagerClient
impl RefUnwindSafe for MockKeyManagerClient
impl Send for MockKeyManagerClient
impl Sync for MockKeyManagerClient
impl Unpin for MockKeyManagerClient
impl UnwindSafe for MockKeyManagerClient
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)