/// Re-construct a `PrivateKey` from the supplied mnemonic and password.
Re-construct a `PrivateKey` from the supplied mnemonic and password.
Re - construct a ` PrivateKey ` from the supplied mnemonic and password .
pub fn from_mnemonic(mnemonic: &str, password: &str) -> Result<Self, HederaError> {
        let mnemonic = Mnemonic::from_phrase(mnemonic, Language::English)
            .map_err(|_| HederaError::InvalidMnemonic)?;
        Ok(Self::generate_with_mnemonic(&mnemonic, password))
    }
pub fn from_mnemonic ( mnemonic : & str , password : & str ) -> Result < Self , HederaError > { let mnemonic = Mnemonic :: from_phrase ( mnemonic , Language :: English ) . map_err ( | _ | HederaError :: InvalidMnemonic ) ? ; Ok ( Self :: generate_with_mnemonic ( & mnemonic , password ) ) }
Re-construct a `PrivateKey` from the supplied mnemonic and password.
Re - construct a ` PrivateKey ` from the supplied mnemonic and password .
mnemonic
&str
password
&str