From d41ae5eb97a5264b1d61321354eac049ca317c97 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 15 Jun 2021 18:52:43 +0200 Subject: separate wallet state from wallet client --- .../taler-wallet-core/src/operations/backup/index.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'packages/taler-wallet-core/src/operations/backup') diff --git a/packages/taler-wallet-core/src/operations/backup/index.ts b/packages/taler-wallet-core/src/operations/backup/index.ts index 00a76bd19..2cc056721 100644 --- a/packages/taler-wallet-core/src/operations/backup/index.ts +++ b/packages/taler-wallet-core/src/operations/backup/index.ts @@ -38,7 +38,10 @@ import { WalletBackupConfState, WALLET_BACKUP_STATE_KEY, } from "../../db.js"; -import { checkDbInvariant, checkLogicInvariant } from "../../util/invariants.js"; +import { + checkDbInvariant, + checkLogicInvariant, +} from "../../util/invariants.js"; import { bytesToString, decodeCrock, @@ -83,8 +86,15 @@ import { TalerErrorDetails, } from "@gnu-taler/taler-util"; import { CryptoApi } from "../../crypto/workers/cryptoApi.js"; -import { secretbox, secretbox_open } from "../../crypto/primitives/nacl-fast.js"; -import { checkPaymentByProposalId, confirmPay, preparePayForUri } from "../pay.js"; +import { + secretbox, + secretbox_open, +} from "../../crypto/primitives/nacl-fast.js"; +import { + checkPaymentByProposalId, + confirmPay, + preparePayForUri, +} from "../pay.js"; import { exportBackup } from "./export.js"; import { BackupCryptoPrecomputedData, importBackup } from "./import.js"; import { provideBackupState, getWalletBackupState } from "./state.js"; -- cgit v1.2.3