summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/crypto
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-06-09 15:26:18 +0200
committerFlorian Dold <florian@dold.me>2021-06-09 15:26:18 +0200
commit3d2b7b2a65787858c9471bc48cc5860c07b7f7dc (patch)
tree4a7477c184de7408104b8bf254a277a5949b19de /packages/taler-wallet-core/src/crypto
parent5c26461247040c07c86291babf0c87631df638b5 (diff)
downloadwallet-core-3d2b7b2a65787858c9471bc48cc5860c07b7f7dc.tar.gz
wallet-core-3d2b7b2a65787858c9471bc48cc5860c07b7f7dc.tar.bz2
wallet-core-3d2b7b2a65787858c9471bc48cc5860c07b7f7dc.zip
formatting: re-run prettier
Diffstat (limited to 'packages/taler-wallet-core/src/crypto')
-rw-r--r--packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts2
-rw-r--r--packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts8
2 files changed, 6 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts b/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts
index d8c02cb1b..1969dee95 100644
--- a/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts
+++ b/packages/taler-wallet-core/src/crypto/workers/cryptoImplementation.ts
@@ -222,7 +222,7 @@ export class CryptoImplementation {
.put(decodeCrock(req.merchantPub))
.put(decodeCrock(req.coinPub))
.build();
- return encodeCrock(eddsaSign(p, decodeCrock(req.merchantPriv)));
+ return encodeCrock(eddsaSign(p, decodeCrock(req.merchantPriv)));
}
/**
diff --git a/packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts b/packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts
index 37b93abe4..453a46945 100644
--- a/packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts
+++ b/packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts
@@ -92,8 +92,10 @@ export function handleWorkerMessage(msg: any): void {
try {
const result = (impl as any)[operation](...args);
// eslint-disable-next-line @typescript-eslint/no-var-requires
- const _r = "require"
- const worker_threads: typeof import("worker_threads") = module[_r]("worker_threads");
+ const _r = "require";
+ const worker_threads: typeof import("worker_threads") = module[_r](
+ "worker_threads",
+ );
// const worker_threads = require("worker_threads");
const p = worker_threads.parentPort;
@@ -149,7 +151,7 @@ class NodeThreadCryptoWorker implements CryptoWorker {
constructor() {
// eslint-disable-next-line @typescript-eslint/no-var-requires
- const _r = "require"
+ const _r = "require";
const worker_threads = module[_r]("worker_threads");
logger.trace("starting node crypto worker");