[−][src]Function indyrs::wallet::import_wallet
pub fn import_wallet(
config: &str,
credentials: &str,
import_config: &str
) -> Box<dyn Future<Item = (), Error = IndyError>>
Creates a new secure wallet with the given unique name and then imports its content according to fields provided in import_config This can be seen as an create call with additional content import
Note this endpoint is EXPERIMENTAL. Function signature and behaviour may change in the future releases.
Arguments
-
config
- Wallet configuration json. { "storage": -
credentials
- Wallet credentials json (if NULL, then default config will be used). { "key": string, "storage": Optional}
-
import_config
- JSON containing settings for input operation. { "path": path of the file that contains exported wallet content "key": passphrase used to derive export key }