pub struct KeyStore {
pub address: Option<Address>,
pub crypto: CryptoJson,
pub id: Uuid,
pub version: u8,
}Available on crate feature
wallet only.Fields§
§address: Option<Address>§crypto: CryptoJson§id: Uuid§version: u8Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyStore
impl<'de> Deserialize<'de> for KeyStore
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
Source§impl KeyStoreEncrypt for KeyStore
impl KeyStoreEncrypt for KeyStore
Source§fn encrypt<B, P>(pk: B, password: P) -> Result<KeyStore, KeyStoreError>
fn encrypt<B, P>(pk: B, password: P) -> Result<KeyStore, KeyStoreError>
encrypt private_key or other data into keystore format with provide
passwordfn encrypt_with<R, B, P>( rng: &mut R, pk: B, password: P, ) -> Result<KeyStore, KeyStoreError>
Auto Trait Implementations§
impl Freeze for KeyStore
impl RefUnwindSafe for KeyStore
impl Send for KeyStore
impl Sync for KeyStore
impl Unpin for KeyStore
impl UnwindSafe for KeyStore
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