gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: wallet-core: remove old+wrong


From: gnunet
Subject: [taler-wallet-core] branch master updated: wallet-core: remove old+wrong backwards compatibility code path
Date: Tue, 08 Mar 2022 12:32:32 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 3e6f6eb3 wallet-core: remove old+wrong backwards compatibility code 
path
3e6f6eb3 is described below

commit 3e6f6eb3d7effc81f864bef91c771ad8cef0f5de
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Mar 8 12:32:29 2022 +0100

    wallet-core: remove old+wrong backwards compatibility code path
---
 .../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
index 5eb24861..2a1a774f 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(

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]