/// Retrieve a wallet from a list of free keys used as utxo's
///
/// You can also use this function to recover a wallet even after you have
/// transferred all the funds to the new format (see the [Self::convert] function).
///
/// Parameters
///
/// * `account_key`: the private key used for voting
/// * `keys`: unused
///
/// # Errors
///
/// The function may fail if:
///
/// TODO
///
Retrieve a wallet from a list of free keys used as utxo's
You can also use this function to recover a wallet even after you have
transferred all the funds to the new format .

Parameters

`account_key`: the private key used for voting
`keys`: unused
Retrieve a wallet from a list of free keys used as utxo ' s You can also use this function to recover a wallet even after you have transferred all the funds to the new format . Parameters ` account_key ` : the private key used for voting ` keys ` : unused
pub fn recover_free_keys<'a, U: Iterator<Item = &'a [u8; 64]>>(
        account_key: &[u8],
        _keys: U,
    ) -> Result<Self, Error> {
        let builder = wallet::RecoveryBuilder::new();
        let builder = builder.account_secret_key(SecretKey::from_binary(account_key).unwrap());
        let account = builder
            .build_wallet()
            .expect("build the account cannot fail as expected");
        Ok(Wallet { account })
    }
pub fn recover_free_keys < ' a , U : Iterator < Item = & ' a [ u8 ; 64 ] > > ( account_key : & [ u8 ] , _keys : U , ) -> Result < Self , Error > { let builder = wallet :: RecoveryBuilder :: new ( ) ; let builder = builder . account_secret_key ( SecretKey :: from_binary ( account_key ) . unwrap ( ) ) ; let account = builder . build_wallet ( ) . expect ( " " ) ; Ok ( Wallet { account } ) }
Retrieve a wallet from a list of free keys used as utxo's
You can also use this function to recover a wallet even after you have
transferred all the funds to the new format (see the [Self::convert] function).
Retrieve a wallet from a list of free keys used as utxo ' s You can also use this function to recover a wallet even after you have transferred all the funds to the new format ( see the [ Self :: convert ] function ) .
account_key
&[u8]
_keys
U
errors
The function may fail if.


The function may fail if .