public static BHP6Wallet Migrate(string path, string db3path, string password) { using (UserWallet wallet_old = UserWallet.Open(db3path, password)) { BHP6Wallet wallet_new = new BHP6Wallet(path, wallet_old.Name); using (wallet_new.Unlock(password)) { foreach (WalletAccount account in wallet_old.GetAccounts()) { wallet_new.CreateAccount(account.Contract, account.GetKey()); } } return(wallet_new); } }