From 6316643f51d9ffa88bfc44e8bc191f5583b7a489 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Wed, 12 Apr 2023 02:33:32 +0000 Subject: [PATCH] Rename bn to bn254 --- README.md | 2 +- package.json | 8 ++++---- src/{bn.ts => bn254.ts} | 0 test/basic.test.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename src/{bn.ts => bn254.ts} (100%) 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' };