taler-typescript-core

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

commit b7f3786d67549660a1ed2cc033e740ad7e7bc9f0
parent b523399e130305c521bd921fb19e1e41c57b9b79
Author: Florian Dold <florian@dold.me>
Date:   Wed,  8 Oct 2025 17:55:51 +0200

donau: fix hash order

Diffstat:
Mpackages/taler-wallet-core/src/donau.ts | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/taler-wallet-core/src/donau.ts b/packages/taler-wallet-core/src/donau.ts @@ -164,8 +164,8 @@ export async function handleSetDonau( const salt = getRandomBytes(32); // FIXME: Where is the salted hashing for this specified? const idHasher = createHashContext(); - idHasher.update(stringToBytes(encodeCrock(salt) + "\0")); idHasher.update(stringToBytes(req.taxPayerId + "\0")); + idHasher.update(stringToBytes(encodeCrock(salt) + "\0")); const saltedId = idHasher.finish(); await wex.db.runAllStoresReadWriteTx({}, async (tx) => { await tx.config.put({