Skip to content

Commit

Permalink
chore: explicit extensions for noble as it exports both cjs and esm
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Nov 30, 2024
1 parent ffd49e1 commit be3f4fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion packages/key-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"@stablelib/ed25519": "^1.0.3",
"@stablelib/sha256": "^1.0.1",
"@stablelib/sha512": "^1.0.1",
"@noble/secp256k1": "^2.1.0",
"@noble/curves": "^1.7.0",
"@noble/hashes": "^1.6.1",
"micro-rsa-dsa-dh": "^0.1.0",
Expand Down
14 changes: 7 additions & 7 deletions packages/key-utils/src/functions.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {randomBytes} from '@ethersproject/random'
import {bls12_381} from "@noble/curves/bls12-381";
import {ed25519} from '@noble/curves/ed25519';
import {p256} from '@noble/curves/p256';
import {p384} from "@noble/curves/p384";
import {p521} from "@noble/curves/p521";
import {secp256k1} from '@noble/curves/secp256k1';
import {sha256, sha384, sha512} from '@noble/hashes/sha2'
import {bls12_381} from "@noble/curves/bls12-381.js";
import {ed25519} from '@noble/curves/ed25519.js';
import {p256} from '@noble/curves/p256.js';
import {p384} from "@noble/curves/p384.js";
import {p521} from "@noble/curves/p521.js";
import {secp256k1} from '@noble/curves/secp256k1.js';
import {sha256, sha384, sha512} from '@noble/hashes/sha2.js'
import {
generateRSAKeyAsPEM,
hexToBase64,
Expand Down

0 comments on commit be3f4fd

Please sign in to comment.