pub struct FileBasedKeystore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Default for FileBasedKeystore
impl Default for FileBasedKeystore
Source§fn default() -> FileBasedKeystore
fn default() -> FileBasedKeystore
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FileBasedKeystore
impl<'de> Deserialize<'de> for FileBasedKeystore
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<FileBasedKeystore> for Keystore
impl From<FileBasedKeystore> for Keystore
Source§fn from(v: FileBasedKeystore) -> Keystore
fn from(v: FileBasedKeystore) -> Keystore
Converts to this type from the input type.
Source§impl ReadOnlyAccountKeystore for FileBasedKeystore
impl ReadOnlyAccountKeystore for FileBasedKeystore
Source§fn aliases(&self) -> Vec<&Alias>
fn aliases(&self) -> Vec<&Alias>
Return an array of Alias, consisting of every alias and its corresponding public key.
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
Source§fn get_alias_by_address(&self, address: &SuiAddress) -> Result<String, Error>
fn get_alias_by_address(&self, address: &SuiAddress) -> Result<String, Error>
Get the alias if it exists, or return an error if it does not exist.
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 FileBasedKeystore
impl Serialize for FileBasedKeystore
Auto Trait Implementations§
impl Freeze for FileBasedKeystore
impl RefUnwindSafe for FileBasedKeystore
impl Send for FileBasedKeystore
impl Sync for FileBasedKeystore
impl Unpin for FileBasedKeystore
impl UnwindSafe for FileBasedKeystore
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<'de, T> FromBcs for Twhere
T: Deserialize<'de>,
impl<'de, T> FromBcs for Twhere
T: Deserialize<'de>,
fn from_bcs<'de>(bytes: &'de [u8]) -> Result<Self, Error>where
Self: Deserialize<'de>,
fn from_bcs_base64(base64: &str) -> Result<Self, Error>where
Self: DeserializeOwned,
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