[−][src]Struct gu_ethkey::SafeEthKey
An Ethereum KeyPair
wrapper with Store.
Trait Implementations
impl EthKey for SafeEthKey
[src]
impl EthKey for SafeEthKey
fn public(&self) -> &Public
[src]
fn public(&self) -> &Public
get public key
fn address(&self) -> Address
[src]
fn address(&self) -> Address
get ethereum address
fn sign(&self, msg: &Message) -> Result<Signature>
[src]
fn sign(&self, msg: &Message) -> Result<Signature>
signs message with sef key
fn verify(&self, sig: &Signature, msg: &Message) -> Result<bool>
[src]
fn verify(&self, sig: &Signature, msg: &Message) -> Result<bool>
verifies signature for message and self key
fn encrypt(&self, plain: &[u8]) -> Result<Vec<u8>>
[src]
fn encrypt(&self, plain: &[u8]) -> Result<Vec<u8>>
ciphers given plain data
fn decrypt(&self, encrypted: &[u8]) -> Result<Vec<u8>>
[src]
fn decrypt(&self, encrypted: &[u8]) -> Result<Vec<u8>>
deciphers given encrypted data
impl EthKeyStore for SafeEthKey
[src]
impl EthKeyStore for SafeEthKey
fn load_or_generate<P>(file_path: P, pwd: &Password) -> Result<Box<Self>> where
P: Into<PathBuf>,
[src]
fn load_or_generate<P>(file_path: P, pwd: &Password) -> Result<Box<Self>> where
P: Into<PathBuf>,
reads keys from disk or generates new ones and stores to disk; pass needed
fn change_password(&self, new_pwd: &Password) -> Result<()>
[src]
fn change_password(&self, new_pwd: &Password) -> Result<()>
stores keys on disk with changed password
impl Display for SafeEthKey
[src]
impl Display for SafeEthKey
Auto Trait Implementations
impl Send for SafeEthKey
impl Send for SafeEthKey
impl Sync for SafeEthKey
impl Sync for SafeEthKey
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> Erased for T
impl<T> Erased for T