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: treat minimum_ag


From: gnunet
Subject: [taler-wallet-core] branch master updated: wallet-core: treat minimum_age=0 as no age restriction
Date: Thu, 28 Mar 2024 12:14:18 +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 53faa440d wallet-core: treat minimum_age=0 as no age restriction
53faa440d is described below

commit 53faa440d146b4658fdad48ef545092325dda475
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Mar 28 12:14:13 2024 +0100

    wallet-core: treat minimum_age=0 as no age restriction
---
 .../taler-wallet-core/src/crypto/cryptoImplementation.ts     |  4 ++--
 packages/taler-wallet-core/src/pay-merchant.ts               | 12 +++---------
 2 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts 
b/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts
index 7c6b142fb..77ee65e52 100644
--- a/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts
+++ b/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts
@@ -1134,7 +1134,7 @@ export const nativeCryptoR: TalerCryptoInterfaceR = {
         depositInfo.ageCommitmentProof.commitment,
       );
       hAgeCommitment = decodeCrock(ach);
-      if (depositInfo.requiredMinimumAge != null) {
+      if (depositInfo.requiredMinimumAge) {
         minimumAgeSig = encodeCrock(
           AgeRestriction.commitmentAttest(
             depositInfo.ageCommitmentProof,
@@ -1184,7 +1184,7 @@ export const nativeCryptoR: TalerCryptoInterfaceR = {
         },
       };
 
-      if (depositInfo.requiredMinimumAge != null) {
+      if (depositInfo.requiredMinimumAge) {
         // These are only required by the merchant
         s.minimum_age_sig = minimumAgeSig;
         s.age_commitment =
diff --git a/packages/taler-wallet-core/src/pay-merchant.ts 
b/packages/taler-wallet-core/src/pay-merchant.ts
index 62309a300..812d32429 100644
--- a/packages/taler-wallet-core/src/pay-merchant.ts
+++ b/packages/taler-wallet-core/src/pay-merchant.ts
@@ -1621,11 +1621,6 @@ export async function generateDepositPermissions(
     const { coin, denom } = coinWithDenom[i];
     let wireInfoHash: string;
     wireInfoHash = contractData.wireInfoHash;
-    logger.trace(
-      `signing deposit permission for coin with ageRestriction=${j2s(
-        coin.ageCommitmentProof,
-      )}`,
-    );
     const dp = await wex.cryptoApi.signDepositPermission({
       coinPriv: coin.coinPriv,
       coinPub: coin.coinPub,
@@ -2075,10 +2070,9 @@ async function processPurchasePay(
       session_id: purchase.lastSessionId,
     };
 
-    logger.trace(
-      "making pay request ... ",
-      JSON.stringify(reqBody, undefined, 2),
-    );
+    if (logger.shouldLogTrace()) {
+      logger.trace(`making pay request ... ${j2s(reqBody)}`);
+    }
 
     const resp = await wex.ws.runSequentialized([EXCHANGE_COINS_LOCK], () =>
       wex.http.fetch(payUrl, {

-- 
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]