Skip to content

Commit

Permalink
New modules bls, bn, math
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Sep 4, 2024
1 parent 411d6b1 commit c13e601
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
24 changes: 24 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down
1 change: 1 addition & 0 deletions src/bls.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { bls12_381 } from '@noble/curves/bls12-381';
1 change: 1 addition & 0 deletions src/bn.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { bn254 } from '@noble/curves/bn254';
4 changes: 4 additions & 0 deletions src/math.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { pow, invert } from "@noble/curves/abstract/modular";

export const modPow = pow;
export const modInvert = invert;

0 comments on commit c13e601

Please sign in to comment.