taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit edf83f5d53bdb396d41a1dcb721cdd9750c123bc
parent e06f01e63861cfffca5d924fc3f95873a6f7e881
Author: Iván Ávalos <avalos@disroot.org>
Date:   Fri, 10 Oct 2025 16:37:49 +0200

wallet-core: fix rsaVerify check for tokens

Diffstat:
Mpackages/taler-wallet-core/src/pay-merchant.ts | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/taler-wallet-core/src/pay-merchant.ts b/packages/taler-wallet-core/src/pay-merchant.ts @@ -3696,13 +3696,13 @@ export async function validateAndStoreToken( if (!(tokenIssuePub.cipher === DenomKeyType.Rsa)) throw Error("unsupported cipher"); - const valid = await wex.cryptoApi.rsaVerify({ + const rsaVerifyResp = await wex.cryptoApi.rsaVerify({ hm: tokenUsePub, pk: tokenIssuePub.rsa_pub, sig: tokenIssueSig.rsa_signature, }); - if (!valid) { + if (!rsaVerifyResp.valid) { logger.error("token issue signature invalid"); // TODO: properly display error throw Error("token issue signature invalid");