pub struct GeneratedWallet {
pub address: String,
pub private_key: String,
pub warning: String,
}Expand description
Generated EVM wallet information
Fields§
§address: StringThe EVM wallet address (0x-prefixed, 42 characters)
private_key: StringThe private key (64 hex characters) - SAVE THIS! Cannot be recovered
warning: StringSecurity warning
Implementations§
Source§impl GeneratedWallet
impl GeneratedWallet
Sourcepub fn to_hex_key(&self) -> String
pub fn to_hex_key(&self) -> String
Export the private key in hex format (for EVM wallets) Returns the private key with 0x prefix
Sourcepub fn save_to_file(&self, path: &Path) -> Result<()>
pub fn save_to_file(&self, path: &Path) -> Result<()>
Save the private key to a file
Trait Implementations§
Source§impl Clone for GeneratedWallet
impl Clone for GeneratedWallet
Source§fn clone(&self) -> GeneratedWallet
fn clone(&self) -> GeneratedWallet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneratedWallet
impl Debug for GeneratedWallet
Source§impl<'de> Deserialize<'de> for GeneratedWallet
impl<'de> Deserialize<'de> for GeneratedWallet
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
Auto Trait Implementations§
impl Freeze for GeneratedWallet
impl RefUnwindSafe for GeneratedWallet
impl Send for GeneratedWallet
impl Sync for GeneratedWallet
impl Unpin for GeneratedWallet
impl UnsafeUnpin for GeneratedWallet
impl UnwindSafe for GeneratedWallet
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