pub struct Wallet { /* private fields */ }Implementations§
Source§impl Wallet
impl Wallet
pub fn generate() -> (Self, String)
pub fn from_mnemonic(phrase: &str) -> Result<Self>
pub fn address(&self) -> Address
pub fn sign_transaction(&self, tx: Transaction) -> Result<Transaction>
Auto Trait Implementations§
impl Freeze for Wallet
impl RefUnwindSafe for Wallet
impl Send for Wallet
impl Sync for Wallet
impl Unpin for Wallet
impl UnsafeUnpin for Wallet
impl UnwindSafe for Wallet
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