pub struct InMemKeystore { /* private fields */ }Expand description
Carry-over from the original code, but un-initializable.
Trait Implementations§
Source§impl Default for InMemKeystore
impl Default for InMemKeystore
Source§fn default() -> InMemKeystore
fn default() -> InMemKeystore
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InMemKeystore
impl<'de> Deserialize<'de> for InMemKeystore
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<InMemKeystore> for Keystore
impl From<InMemKeystore> for Keystore
Source§fn from(v: InMemKeystore) -> Keystore
fn from(v: InMemKeystore) -> Keystore
Converts to this type from the input type.
Source§impl ReadOnlyAccountKeystore for InMemKeystore
impl ReadOnlyAccountKeystore for InMemKeystore
Source§fn get_alias_by_address(&self, address: &SuiAddress) -> Result<String, Error>
fn get_alias_by_address(&self, address: &SuiAddress) -> Result<String, Error>
Get alias of address
Source§fn get_address_by_alias(&self, alias: String) -> Result<&SuiAddress, Error>
fn get_address_by_alias(&self, alias: String) -> Result<&SuiAddress, Error>
Get the address by its alias
fn sign_hashed( &self, address: &SuiAddress, msg: &[u8], ) -> Result<Signature, Error>
fn sign_secure<T>(
&self,
address: &SuiAddress,
msg: &T,
intent: Intent,
) -> Result<Signature, Error>where
T: Serialize,
fn addresses_with_alias(&self) -> Vec<(&SuiAddress, &Alias)>
fn keys(&self) -> Vec<PublicKey>
fn get_key(&self, address: &SuiAddress) -> Result<&SuiKeyPair, Error>
fn addresses(&self) -> Vec<SuiAddress>
fn alias_names(&self) -> Vec<&str>
Source§fn alias_exists(&self, alias: &str) -> bool
fn alias_exists(&self, alias: &str) -> bool
Check if an alias exists by its name
Source§impl Serialize for InMemKeystore
impl Serialize for InMemKeystore
Auto Trait Implementations§
impl Freeze for InMemKeystore
impl RefUnwindSafe for InMemKeystore
impl Send for InMemKeystore
impl Sync for InMemKeystore
impl Unpin for InMemKeystore
impl UnwindSafe for InMemKeystore
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more