Update build deps
This commit is contained in:
parent
537db4a968
commit
07f7e53e31
@ -1,4 +1,4 @@
|
|||||||
import { bytesToHex, concatBytes, hexToBytes } from '@noble/curves/abstract/utils';
|
import { bytesToHex, concatBytes, hexToBytes, utf8ToBytes } from '@noble/curves/abstract/utils';
|
||||||
|
|
||||||
export { secp256k1, schnorr as secp256k1_schnorr } from '@noble/curves/secp256k1';
|
export { secp256k1, schnorr as secp256k1_schnorr } from '@noble/curves/secp256k1';
|
||||||
export {
|
export {
|
||||||
@ -17,4 +17,4 @@ export { p384 } from '@noble/curves/p384';
|
|||||||
export { p521 } from '@noble/curves/p521';
|
export { p521 } from '@noble/curves/p521';
|
||||||
export { bls12_381 } from '@noble/curves/bls12-381';
|
export { bls12_381 } from '@noble/curves/bls12-381';
|
||||||
|
|
||||||
export const utils = { bytesToHex, concatBytes, hexToBytes };
|
export const utils = { bytesToHex, concatBytes, hexToBytes, utf8ToBytes };
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@noble/curves": "..",
|
"@noble/curves": "file:..",
|
||||||
"esbuild": "0.18.11"
|
"esbuild": "0.20.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npx esbuild --bundle input.js --outfile=noble-curves.js --global-name=nobleCurves"
|
"build": "npx esbuild --bundle input.js --outfile=noble-curves.js --global-name=nobleCurves"
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"bench": "cd benchmark; node secp256k1.js; node curves.js; node ecdh.js; node hash-to-curve.js; node modular.js; node bls.js; node ristretto255.js; node decaf448.js",
|
"bench": "cd benchmark; node secp256k1.js; node curves.js; node ecdh.js; node hash-to-curve.js; node modular.js; node bls.js; node ristretto255.js; node decaf448.js",
|
||||||
"build": "tsc && tsc -p tsconfig.esm.json",
|
"build": "tsc && tsc -p tsconfig.esm.json",
|
||||||
"build:release": "cd build; npm install && npm run build",
|
"build:release": "cd build && npm i && npm run build",
|
||||||
"build:clean": "rm *.{js,d.ts,d.ts.map,js.map} esm/*.{js,d.ts,d.ts.map,js.map} 2> /dev/null",
|
"build:clean": "rm *.{js,d.ts,d.ts.map,js.map} esm/*.{js,d.ts,d.ts.map,js.map} 2> /dev/null",
|
||||||
"lint": "prettier --check 'src/**/*.{js,ts}' 'test/*.js'",
|
"lint": "prettier --check 'src/**/*.{js,ts}' 'test/*.js'",
|
||||||
"format": "prettier --write 'src/**/*.{js,ts}' 'test/*.js'",
|
"format": "prettier --write 'src/**/*.{js,ts}' 'test/*.js'",
|
||||||
|
Loading…
Reference in New Issue
Block a user