diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2023-08-03 21:44:53 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2023-08-03 21:47:59 +0200 |
commit | c12a366d4937a5ede3dfe8cef3111e12fc39f23a (patch) | |
tree | 07fd3b7ce03c83746e11e8af953a2703fb1c2fdb /packages/taler-wallet-core/src/crypto | |
parent | cf49af2bb9fcc2ceae15a7b90045cc79914dc453 (diff) | |
download | wallet-core-c12a366d4937a5ede3dfe8cef3111e12fc39f23a.tar.xz |
adjustment of age-commitment and -proof generationv0.9.3-dev.19
age-withdraw requires that the public keys in the age groups that
are too large for the commitment are derived from a published public
key.
Diffstat (limited to 'packages/taler-wallet-core/src/crypto')
-rw-r--r-- | packages/taler-wallet-core/src/crypto/cryptoImplementation.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts b/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts index 16d96eaa9..01d2677dc 100644 --- a/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts +++ b/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts @@ -720,9 +720,10 @@ export const nativeCryptoR: TalerCryptoInterfaceR = { if (denomPub.age_mask) { const age = req.restrictAge || AgeRestriction.AGE_UNRESTRICTED; logger.info(`creating age-restricted planchet (age ${age})`); - maybeAcp = await AgeRestriction.restrictionCommit( + maybeAcp = await AgeRestriction.restrictionCommitSeeded( denomPub.age_mask, age, + stringToBytes(req.secretSeed) ); maybeAgeCommitmentHash = AgeRestriction.hashCommitment( maybeAcp.commitment, |