diff options
author | Florian Dold <florian@dold.me> | 2021-12-09 10:39:50 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-12-09 10:39:50 +0100 |
commit | dbfc599540b21da399d94a966ac85b00b339b31a (patch) | |
tree | ac1fcf355b5180fd7df115c9673903cf852c0d24 /packages/taler-wallet-core/src/crypto/workers/synchronousWorker.ts | |
parent | 684c53e105e2d4b4e07811423e409ff4735e7297 (diff) | |
download | wallet-core-dbfc599540b21da399d94a966ac85b00b339b31a.tar.xz |
wallet-core: use crypto worker for eddsa signing
Diffstat (limited to 'packages/taler-wallet-core/src/crypto/workers/synchronousWorker.ts')
-rw-r--r-- | packages/taler-wallet-core/src/crypto/workers/synchronousWorker.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/crypto/workers/synchronousWorker.ts b/packages/taler-wallet-core/src/crypto/workers/synchronousWorker.ts index ae8442efd..bfc7ee7a5 100644 --- a/packages/taler-wallet-core/src/crypto/workers/synchronousWorker.ts +++ b/packages/taler-wallet-core/src/crypto/workers/synchronousWorker.ts @@ -114,6 +114,16 @@ class MyPrimitiveWorker implements PrimitiveWorker { args: req, }); } + + async eddsaSign(req: { + msg: string; + priv: string; + }): Promise<{ sig: string }> { + return this.queueRequest({ + op: "eddsa_sign", + args: req, + }); + } } /** |