pub fn mnemonic_to_hex_seed(mnemonic: &str) -> Result<String> {
        // first we check if the mnemonic is valid to give meaningful errors
        crypto::keys::bip39::wordlist::verify(mnemonic, &crypto::keys::bip39::wordlist::ENGLISH)
            .map_err(|e| crate::Error::InvalidMnemonic(format!("{:?}", e)))?;
        let mut mnemonic_seed = [0u8; 64];
        mnemonic_to_seed(mnemonic, "", &mut mnemonic_seed);
        Ok(hex::encode(mnemonic_seed))
    }
/// Returns a hex encoded seed for a mnemonic.
Returns a hex encoded seed for a mnemonic.
Returns a hex encoded seed for a mnemonic .
pub fn mnemonic_to_hex_seed(mnemonic: &str) -> Result<String> {
        // first we check if the mnemonic is valid to give meaningful errors
        crypto::keys::bip39::wordlist::verify(mnemonic, &crypto::keys::bip39::wordlist::ENGLISH)
            .map_err(|e| crate::Error::InvalidMnemonic(format!("{:?}", e)))?;
        let mut mnemonic_seed = [0u8; 64];
        mnemonic_to_seed(mnemonic, "", &mut mnemonic_seed);
        Ok(hex::encode(mnemonic_seed))
    }
pub fn mnemonic_to_hex_seed ( mnemonic : & str ) -> Result < String > { // first we check if the mnemonic is valid to give meaningful errors crypto :: keys :: bip39 :: wordlist :: verify ( mnemonic , & crypto :: keys :: bip39 :: wordlist :: ENGLISH ) . map_err ( | e | crate :: Error :: InvalidMnemonic ( format ! ( " " e ) ) ) ? ; let mut mnemonic_seed = [ 0u8 ; 64 ] ; mnemonic_to_seed ( mnemonic , " " , & mut mnemonic_seed ) ; Ok ( hex :: encode ( mnemonic_seed ) ) }
Returns a hex encoded seed for a mnemonic.
Returns a hex encoded seed for a mnemonic .
mnemonic
&str
mnemonic
&str