[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: wallet-core: only attest age
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: wallet-core: only attest age if required/possible |
Date: |
Wed, 01 Jun 2022 11:54:48 +0200 |
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 d780e9b1 wallet-core: only attest age if required/possible
d780e9b1 is described below
commit d780e9b187ffd4a3221ca1cf6c51dc5fa5385809
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Jun 1 11:54:45 2022 +0200
wallet-core: only attest age if required/possible
---
packages/taler-wallet-core/src/crypto/cryptoImplementation.ts | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts
b/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts
index 052d50ca..7c6b00bc 100644
--- a/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts
+++ b/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts
@@ -916,10 +916,12 @@ export const nativeCryptoR: TalerCryptoInterfaceR = {
);
maybeAgeCommitmentHash = ach;
hAgeCommitment = decodeCrock(ach);
- minimumAgeSig = AgeRestriction.commitmentAttest(
- depositInfo.ageCommitmentProof,
- depositInfo.requiredMinimumAge!,
- );
+ if (depositInfo.requiredMinimumAge != null) {
+ minimumAgeSig = AgeRestriction.commitmentAttest(
+ depositInfo.ageCommitmentProof,
+ depositInfo.requiredMinimumAge,
+ );
+ }
} else {
// All zeros.
hAgeCommitment = new Uint8Array(32);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: wallet-core: only attest age if required/possible,
gnunet <=