diff options
author | Florian Dold <florian@dold.me> | 2022-03-08 12:32:29 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-03-08 12:32:29 +0100 |
commit | 3e6f6eb3d7effc81f864bef91c771ad8cef0f5de (patch) | |
tree | 69c7bc256a68bc970eed66e7a3a9a1a7d74c2c0f | |
parent | 3aa0b812f476791b3c3feddb1421e212cf981b3c (diff) | |
download | wallet-core-3e6f6eb3d7effc81f864bef91c771ad8cef0f5de.tar.xz |
wallet-core: remove old+wrong backwards compatibility code path
-rw-r--r-- | packages/taler-wallet-core/src/operations/backup/index.ts | 17 |
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( |