commit 3e6f6eb3d7effc81f864bef91c771ad8cef0f5de parent 3aa0b812f476791b3c3feddb1421e212cf981b3c Author: Florian Dold <florian@dold.me> Date: Tue, 8 Mar 2022 12:32:29 +0100 wallet-core: remove old+wrong backwards compatibility code path Diffstat:
| M | packages/taler-wallet-core/src/operations/backup/index.ts | | | 17 | ++--------------- |
1 file 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 @@ -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(