pub struct PrivateKeyWallet(/* private fields */);
Expand description
An account possessing a private key. PrivateKeyAccount
is tied to an address and can sign
Implementations§
Source§impl PrivateKeyWallet
impl PrivateKeyWallet
pub fn to_secret_key(&self) -> &SecretKey
pub fn from_key(sk: SecretKey) -> PrivateKeyWallet
pub fn from_seed(phrase: String, path: Option<String>) -> PrivateKeyWallet
Auto Trait Implementations§
impl Freeze for PrivateKeyWallet
impl RefUnwindSafe for PrivateKeyWallet
impl Send for PrivateKeyWallet
impl Sync for PrivateKeyWallet
impl Unpin for PrivateKeyWallet
impl UnwindSafe for PrivateKeyWallet
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