diff --git a/package.json b/package.json index 921e8ee..613f01f 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,14 @@ "import": "./esm/blake2b.js", "require": "./blake2b.js" }, + "./bls": { + "import": "./esm/bls.js", + "require": "./bls.js" + }, + "./bn": { + "import": "./esm/bn.js", + "require": "./bn.js" + }, "./hdkey": { "import": "./esm/hdkey.js", "require": "./hdkey.js" @@ -45,6 +53,10 @@ "import": "./esm/index.js", "require": "./index.js" }, + "./math": { + "import": "./esm/math.js", + "require": "./math.js" + }, "./keccak": { "import": "./esm/keccak.js", "require": "./keccak.js" @@ -141,6 +153,14 @@ "import": "./esm/blake2b.js", "require": "./blake2b.js" }, + "./bls.js": { + "import": "./esm/bls.js", + "require": "./bls.js" + }, + "./bn.js": { + "import": "./esm/bn.js", + "require": "./bn.js" + }, "./hdkey.js": { "import": "./esm/hdkey.js", "require": "./hdkey.js" @@ -149,6 +169,10 @@ "import": "./esm/index.js", "require": "./index.js" }, + "./math.js": { + "import": "./esm/math.js", + "require": "./math.js" + }, "./keccak.js": { "import": "./esm/keccak.js", "require": "./keccak.js" diff --git a/src/bls.ts b/src/bls.ts new file mode 100644 index 0000000..21dfc9b --- /dev/null +++ b/src/bls.ts @@ -0,0 +1 @@ +export { bls12_381 } from '@noble/curves/bls12-381'; \ No newline at end of file diff --git a/src/bn.ts b/src/bn.ts new file mode 100644 index 0000000..383bd22 --- /dev/null +++ b/src/bn.ts @@ -0,0 +1 @@ +export { bn254 } from '@noble/curves/bn254'; \ No newline at end of file diff --git a/src/math.ts b/src/math.ts new file mode 100644 index 0000000..f862360 --- /dev/null +++ b/src/math.ts @@ -0,0 +1,4 @@ +import { pow, invert } from "@noble/curves/abstract/modular"; + +export const modPow = pow; +export const modInvert = invert;