create_basic_wallet

Function create_basic_wallet 

Source
pub fn create_basic_wallet(
    init_seed: [u8; 32],
    auth_scheme: AuthScheme,
    account_type: AccountType,
    account_storage_mode: AccountStorageMode,
) -> Result<Account, BasicWalletError>
Expand description

Creates a new account with basic wallet interface, the specified authentication scheme and the account storage type. Basic wallets can be specified to have either mutable or immutable code.

The basic wallet interface exposes three procedures:

  • receive_asset, which can be used to add an asset to the account.
  • move_asset_to_note, which can be used to remove the specified asset from the account and add it to the output note with the specified index.

All methods require authentication. The authentication procedure is defined by the specified authentication scheme.