aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/crypto
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-06-14 16:08:58 +0200
committerFlorian Dold <florian@dold.me>2021-06-14 16:08:58 +0200
commit1cde390c23f2668a3777752632c48febd10a28ee (patch)
treed5efa59c867b8a92e32fde37da841c4c0b8154fd /packages/taler-wallet-core/src/crypto
parentbed86d96135d3f7faa34d9c1e377c8fb2b06abea (diff)
downloadwallet-core-1cde390c23f2668a3777752632c48febd10a28ee.tar.xz
fix up imports, no more esm in tests
Diffstat (limited to 'packages/taler-wallet-core/src/crypto')
-rw-r--r--packages/taler-wallet-core/src/crypto/primitives/kdf.ts4
-rw-r--r--packages/taler-wallet-core/src/crypto/talerCrypto-test.ts6
-rw-r--r--packages/taler-wallet-core/src/crypto/talerCrypto.ts4
-rw-r--r--packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts6
4 files changed, 10 insertions, 10 deletions
diff --git a/packages/taler-wallet-core/src/crypto/primitives/kdf.ts b/packages/taler-wallet-core/src/crypto/primitives/kdf.ts
index edc681bc1..af4d05035 100644
--- a/packages/taler-wallet-core/src/crypto/primitives/kdf.ts
+++ b/packages/taler-wallet-core/src/crypto/primitives/kdf.ts
@@ -14,8 +14,8 @@
GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
-import * as nacl from "./nacl-fast";
-import { sha256 } from "./sha256";
+import * as nacl from "./nacl-fast.js";
+import { sha256 } from "./sha256.js";
export function sha512(data: Uint8Array): Uint8Array {
return nacl.hash(data);
diff --git a/packages/taler-wallet-core/src/crypto/talerCrypto-test.ts b/packages/taler-wallet-core/src/crypto/talerCrypto-test.ts
index 99a0e12c0..3718290d7 100644
--- a/packages/taler-wallet-core/src/crypto/talerCrypto-test.ts
+++ b/packages/taler-wallet-core/src/crypto/talerCrypto-test.ts
@@ -30,9 +30,9 @@ import {
stringToBytes,
bytesToString,
rsaVerify,
-} from "./talerCrypto";
-import { sha512, kdf } from "./primitives/kdf";
-import * as nacl from "./primitives/nacl-fast";
+} from "./talerCrypto.js";
+import { sha512, kdf } from "./primitives/kdf.js";
+import * as nacl from "./primitives/nacl-fast.js";
test("encoding", (t) => {
const s = "Hello, World";
diff --git a/packages/taler-wallet-core/src/crypto/talerCrypto.ts b/packages/taler-wallet-core/src/crypto/talerCrypto.ts
index 381896858..5739bc464 100644
--- a/packages/taler-wallet-core/src/crypto/talerCrypto.ts
+++ b/packages/taler-wallet-core/src/crypto/talerCrypto.ts
@@ -18,9 +18,9 @@
* Native implementation of GNU Taler crypto.
*/
-import * as nacl from "./primitives/nacl-fast";
+import * as nacl from "./primitives/nacl-fast.js";
import bigint from "big-integer";
-import { kdf } from "./primitives/kdf";
+import { kdf } from "./primitives/kdf.js";
// @ts-ignore
const decoder = new TextDecoder();
diff --git a/packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts b/packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts
index a38441067..546099777 100644
--- a/packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts
+++ b/packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts
@@ -22,9 +22,9 @@
/**
* Imports.
*/
-import { CoinRecord, DenominationRecord, WireFee } from "../../db";
+import { CoinRecord, DenominationRecord, WireFee } from "../../db.js";
-import { CryptoWorker } from "./cryptoWorker";
+import { CryptoWorker } from "./cryptoWorker.js";
import { RecoupRequest, CoinDepositPermission } from "@gnu-taler/taler-util";
@@ -36,7 +36,7 @@ import {
MakeSyncSignatureRequest,
} from "@gnu-taler/taler-util";
-import * as timer from "../../util/timer";
+import * as timer from "../../util/timer.js";
import { Logger } from "@gnu-taler/taler-util";
import {
DerivedRefreshSession,