Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
Export Brainpool curves, and export all curves through single entrypoint
Browse files Browse the repository at this point in the history
All curves are needed in OpenPGP.js, so importing them separately does not have advantages.
  • Loading branch information
larabr committed Oct 6, 2023
1 parent 01b5633 commit e6649dc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
16 changes: 11 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@
},
"main": "index.js",
"exports": {
"./abstract/utils": {
"import": "./esm/abstract/utils.js"
},
"./_shortw_utils": {
"import": "./esm/_shortw_utils.js"
".": {
"import": "./esm/index.js"
},
"./ed25519": {
"import": "./esm/ed25519.js"
Expand All @@ -76,6 +73,15 @@
},
"./secp256k1": {
"import": "./esm/secp256k1.js"
},
"./brainpoolP256r1": {
"import": "./esm/brainpoolP256r1.js"
},
"./brainpoolP384r1": {
"import": "./esm/brainpoolP384r1.js"
},
"./brainpoolP512r1": {
"import": "./esm/brainpoolP512r1.js"
}
},
"keywords": [
Expand Down
10 changes: 9 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
throw new Error('Incorrect usage. Import submodules instead');
export { ed448 } from "./ed448.js";
// export { ed25519 } from "./ed25519.js";
export { p256 } from "./p256.js";
export { p384 } from "./p384.js";
export { p521 } from "./p521.js";
export { secp256k1 } from "./secp256k1.js";
export { brainpoolP256r1 } from "./brainpoolP256r1.js";
export { brainpoolP384r1 } from "./brainpoolP384r1.js";
export { brainpoolP512r1 } from "./brainpoolP512r1.js";

0 comments on commit e6649dc

Please sign in to comment.