Skip to content

Commit

Permalink
[worker] better doc for cryptoProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed May 1, 2024
1 parent 33600bf commit d7a8117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/worker-api/src/webCryptoRSA.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;

Expand Down

0 comments on commit d7a8117

Please sign in to comment.