Function libindy_sys::indy_create_wallet[][src]

pub unsafe extern "C" fn indy_create_wallet(
    command_handle: indy_handle_t,
    config: *const c_char,
    credentials: *const c_char,
    cb: indy_empty_cb
) -> indy_error_t

Create a new secure wallet.

#Params config: Wallet configuration json. { "id": string, Identifier of the wallet. Configured storage uses this identifier to lookup exact wallet data placement. "storage_type": optional, Type of the wallet storage. Defaults to 'default'. 'Default' storage type allows to store wallet data in the local file. Custom storage types can be registered with indy_register_wallet_storage call. "storage_config": optional, Storage configuration json. Storage type defines set of supported keys. Can be optional if storage supports default configuration. For 'default' storage type configuration is: { "path": optional, Path to the directory with wallet files. Defaults to $HOME/.indy_client/wallets. Wallet will be stored in the file {path}/{id}/sqlite.db } } credentials: Wallet credentials json { "key": string, Key or passphrase used for wallet key derivation. Look to key_derivation_method param for information about supported key derivation methods. "storage_credentials": optional Credentials for wallet storage. Storage type defines set of supported keys. Can be optional if storage supports default configuration. For 'default' storage type should be empty. "key_derivation_method": optional Algorithm to use for wallet key derivation: ARGON2I_MOD - derive secured wallet master key (used by default) ARGON2I_INT - derive secured wallet master key (less secured but faster) RAW - raw wallet key master provided (skip derivation). RAW keys can be generated with indy_generate_wallet_key call }

#Returns err: Error code

#Errors Common* Wallet*