diff options
author | Florian Dold <florian@dold.me> | 2024-03-28 12:14:13 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-03-28 12:14:13 +0100 |
commit | 53faa440d146b4658fdad48ef545092325dda475 (patch) | |
tree | 0f54da90ad4c44a45ad9a07144bd55f5a6036313 /packages/taler-wallet-core/src/crypto | |
parent | 59d677daf210c3765ae8544edd5d7e5dba97a873 (diff) | |
download | wallet-core-53faa440d146b4658fdad48ef545092325dda475.tar.xz |
wallet-core: treat minimum_age=0 as no age restriction
Diffstat (limited to 'packages/taler-wallet-core/src/crypto')
-rw-r--r-- | packages/taler-wallet-core/src/crypto/cryptoImplementation.ts | 4 |
1 files changed, 2 insertions, 2 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 = |