Struct terra_rust_wallet::Wallet [−][src]
pub struct Wallet<'a> { pub name: &'a str, }
Expand description
Wallet operations based on Keyring API
stores key names in another ‘username/password’ to facilitate listing keys, and deletion of ALL keys in a wallet
Fields
name: &'a str
Implementations
create a new wallet to store keys into. This just creates the structure use #new to create a new wallet
pub fn get_private_key(
&self,
secp: &'a Secp256k1<All>,
key_name: &'a str,
seed: Option<&'a str>
) -> Result<PrivateKey>
pub fn get_private_key(
&self,
secp: &'a Secp256k1<All>,
key_name: &'a str,
seed: Option<&'a str>
) -> Result<PrivateKey>
retrieves the private key from the keyring
retrieves the public key associated with the stored private key
stores the private key into the keyring
deletes the private key from the keyring
get list of wallets