diff options
author | Florian Dold <florian@dold.me> | 2022-10-05 12:52:49 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-10-05 12:52:49 +0200 |
commit | dd14e67c70cd7b5b6891295759cb08aa2f94f180 (patch) | |
tree | 296b07938b676d21ba9f75196cae621e292fc714 /packages/taler-wallet-core/src/wallet.ts | |
parent | 4d232fd56510ae69b76fef4f4ecade1e0d4b230d (diff) | |
download | wallet-core-dd14e67c70cd7b5b6891295759cb08aa2f94f180.tar.xz |
wallet-core: improve crypto worker code duplication
Also add new testCrypto call for later testing
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 244bc1299..129ee458f 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -1445,6 +1445,9 @@ async function dispatchRequestInternal( logger.info(`started fakebank withdrawal: ${j2s(fbResp)}`); return {}; } + case "testCrypto": { + return await ws.cryptoApi.hashString({ str: "hello world" }); + } case "clearDb": await clearDatabase(ws.db.idbHandle()); return {}; |