From dbfc599540b21da399d94a966ac85b00b339b31a Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 9 Dec 2021 10:39:50 +0100 Subject: wallet-core: use crypto worker for eddsa signing --- .../taler-wallet-core/src/crypto/workers/synchronousWorker.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'packages/taler-wallet-core/src/crypto/workers/synchronousWorker.ts') 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, + }); + } } /** -- cgit v1.2.3