From d7a811708b2bf955a24977ae975f187e6d844d05 Mon Sep 17 00:00:00 2001 From: Christian Langenbacher Date: Wed, 1 May 2024 15:02:07 +0200 Subject: [PATCH] [worker] better doc for cryptoProvider --- packages/worker-api/src/webCryptoRSA.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/worker-api/src/webCryptoRSA.ts b/packages/worker-api/src/webCryptoRSA.ts index fe7d297b..8ff83960 100644 --- a/packages/worker-api/src/webCryptoRSA.ts +++ b/packages/worker-api/src/webCryptoRSA.ts @@ -1,7 +1,7 @@ import BN from "bn.js"; /** - * Provides crypto in both, the browser and in the node-js environment (like our tests) + * Provides crypto the browser via the native crypto, and in the node-js environment (like our tests) * via the `@peculiar/webcrypto` polyfill. */ let cryptoProvider: any; @@ -14,7 +14,7 @@ if (typeof window !== "undefined" && typeof window.crypto !== "undefined") { } /** - * Type dependent on our environment browser vs. node-js. + * Type depending on our environment browser vs. node-js. */ type CryptoKey = import("crypto").KeyObject | import("@peculiar/webcrypto").CryptoKey;