pub struct EncryptedWallet {
pub salt: String,
pub nonce: String,
pub ciphertext: String,
pub version: u8,
}Expand description
An encrypted wallet blob ready for storage.
Fields§
§salt: StringSalt for Argon2 (base64 encoded)
nonce: StringNonce for AES-GCM (base64 encoded)
ciphertext: StringEncrypted seed (base64 encoded)
version: u8Version for future format changes 1 = 64MB/3 iter, 2 = 32MB/1 iter
Trait Implementations§
Source§impl Clone for EncryptedWallet
impl Clone for EncryptedWallet
Source§fn clone(&self) -> EncryptedWallet
fn clone(&self) -> EncryptedWallet
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 EncryptedWallet
impl Debug for EncryptedWallet
Source§impl<'de> Deserialize<'de> for EncryptedWallet
impl<'de> Deserialize<'de> for EncryptedWallet
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 EncryptedWallet
impl RefUnwindSafe for EncryptedWallet
impl Send for EncryptedWallet
impl Sync for EncryptedWallet
impl Unpin for EncryptedWallet
impl UnsafeUnpin for EncryptedWallet
impl UnwindSafe for EncryptedWallet
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