Struct terra_rust_wallet::Wallet [−][src]
pub struct Wallet<'a> { /* fields omitted */ }
Expand description
Wallet operations based on Keyring API
Implementations
impl<'a> Wallet<'a>
[src]
impl<'a> Wallet<'a>
[src]pub fn get_private_key(
&self,
secp: &Secp256k1<All>,
key_name: &str,
seed: Option<&str>
) -> Result<PrivateKey>
[src]
pub fn get_private_key(
&self,
secp: &Secp256k1<All>,
key_name: &str,
seed: Option<&str>
) -> Result<PrivateKey>
[src]retrieves the private key from the keyring
pub fn get_public_key(
&self,
secp: &Secp256k1<All>,
key_name: &str,
seed: Option<&str>
) -> Result<PublicKey>
[src]
pub fn get_public_key(
&self,
secp: &Secp256k1<All>,
key_name: &str,
seed: Option<&str>
) -> Result<PublicKey>
[src]retrieves the public key associated with the stored private key
pub fn store_key(&self, key_name: &str, pk: &PrivateKey) -> Result<bool>
[src]
pub fn store_key(&self, key_name: &str, pk: &PrivateKey) -> Result<bool>
[src]stores the private key into the keyring
pub fn delete_key(&self, key_name: &str) -> Result<bool>
[src]
pub fn delete_key(&self, key_name: &str) -> Result<bool>
[src]deletes the private key from the keyring
pub fn delete(&self) -> Result<()>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Wallet<'a>
impl<'a> Send for Wallet<'a>
impl<'a> Sync for Wallet<'a>
impl<'a> Unpin for Wallet<'a>
impl<'a> UnwindSafe for Wallet<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,