diff options
author | Florian Dold <florian@dold.me> | 2022-09-20 21:44:21 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-09-20 23:17:42 +0200 |
commit | 16a5bb40834c01e50e84144bb644517e67a66187 (patch) | |
tree | f6e7167aca608316ad03cf1e0debdb65eabe02cc /packages/taler-wallet-core/src/operations/backup/index.ts | |
parent | 52ec740c825d4e94fd59ef0a5cd8e8b73f4dfc06 (diff) | |
download | wallet-core-16a5bb40834c01e50e84144bb644517e67a66187.tar.xz |
wallet-core: make basic backup work again
Diffstat (limited to 'packages/taler-wallet-core/src/operations/backup/index.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/backup/index.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/taler-wallet-core/src/operations/backup/index.ts b/packages/taler-wallet-core/src/operations/backup/index.ts index c7c93e909..b69c0b7b7 100644 --- a/packages/taler-wallet-core/src/operations/backup/index.ts +++ b/packages/taler-wallet-core/src/operations/backup/index.ts @@ -187,11 +187,11 @@ async function computeBackupCryptoData( cryptoData.rsaDenomPubToHash[backupDenom.denom_pub.rsa_public_key] = encodeCrock(hashDenomPub(backupDenom.denom_pub)); } - for (const backupReserve of backupExchangeDetails.reserves) { - cryptoData.reservePrivToPub[backupReserve.reserve_priv] = encodeCrock( - eddsaGetPublic(decodeCrock(backupReserve.reserve_priv)), - ); - } + } + for (const backupWg of backupContent.withdrawal_groups) { + cryptoData.reservePrivToPub[backupWg.reserve_priv] = encodeCrock( + eddsaGetPublic(decodeCrock(backupWg.reserve_priv)), + ); } for (const prop of backupContent.proposals) { const { h: contractTermsHash } = await cryptoApi.hashString({ |