aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/taler-wallet-core/src/operations/backup/index.ts17
1 files changed, 2 insertions, 15 deletions
diff --git a/packages/taler-wallet-core/src/operations/backup/index.ts b/packages/taler-wallet-core/src/operations/backup/index.ts
index 5eb248611..2a1a774f1 100644
--- a/packages/taler-wallet-core/src/operations/backup/index.ts
+++ b/packages/taler-wallet-core/src/operations/backup/index.ts
@@ -185,21 +185,8 @@ async function computeBackupCryptoData(
coinPub,
};
}
- if (
- LibtoolVersion.compare(backupExchangeDetails.protocol_version, "9")
- ?.compatible
- ) {
- cryptoData.rsaDenomPubToHash[backupDenom.denom_pub.rsa_public_key] =
- encodeCrock(hash(decodeCrock(backupDenom.denom_pub.rsa_public_key)));
- } else if (
- LibtoolVersion.compare(backupExchangeDetails.protocol_version, "10")
- ?.compatible
- ) {
- cryptoData.rsaDenomPubToHash[backupDenom.denom_pub.rsa_public_key] =
- encodeCrock(hashDenomPub(backupDenom.denom_pub));
- } else {
- throw Error("unsupported exchange protocol version");
- }
+ 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(