diff --git a/README.md b/README.md index 3715dd9..7540ae5 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ import { p384 } from '@noble/curves/p384'; import { p521 } from '@noble/curves/p521'; import { pallas, vesta } from '@noble/curves/pasta'; import { bls12_381 } from '@noble/curves/bls12-381'; -import { bn254 } from '@noble/curves/bn'; +import { bn254 } from '@noble/curves/bn254'; import { jubjub } from '@noble/curves/jubjub'; ``` diff --git a/package.json b/package.json index a1f4ef0..22115db 100644 --- a/package.json +++ b/package.json @@ -99,10 +99,10 @@ "import": "./esm/bls12-381.js", "default": "./bls12-381.js" }, - "./bn": { - "types": "./bn.d.ts", - "import": "./esm/bn.js", - "default": "./bn.js" + "./bn254": { + "types": "./bn254.d.ts", + "import": "./esm/bn254.js", + "default": "./bn254.js" }, "./ed25519": { "types": "./ed25519.d.ts", diff --git a/src/bn.ts b/src/bn254.ts similarity index 100% rename from src/bn.ts rename to src/bn254.ts diff --git a/test/basic.test.js b/test/basic.test.js index 39bac05..7ebcd0c 100644 --- a/test/basic.test.js +++ b/test/basic.test.js @@ -12,7 +12,7 @@ import { secp256k1 } from '../esm/secp256k1.js'; import { ed25519, ed25519ctx, ed25519ph, x25519 } from '../esm/ed25519.js'; import { ed448, ed448ph } from '../esm/ed448.js'; import { pallas, vesta } from '../esm/pasta.js'; -import { bn254 } from '../esm/bn.js'; +import { bn254 } from '../esm/bn254.js'; import { jubjub } from '../esm/jubjub.js'; import { bls12_381 } from '../esm/bls12-381.js'; import { default as wyche_curves } from './wycheproof/ec_prime_order_curves_test.json' assert { type: 'json' };