diff --git a/build/input.js b/build/input.js index 0916d05..d53b635 100644 --- a/build/input.js +++ b/build/input.js @@ -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 { @@ -17,4 +17,4 @@ export { p384 } from '@noble/curves/p384'; export { p521 } from '@noble/curves/p521'; export { bls12_381 } from '@noble/curves/bls12-381'; -export const utils = { bytesToHex, concatBytes, hexToBytes }; +export const utils = { bytesToHex, concatBytes, hexToBytes, utf8ToBytes }; diff --git a/build/package.json b/build/package.json index 6fda7c3..fa4caf8 100644 --- a/build/package.json +++ b/build/package.json @@ -9,8 +9,8 @@ "author": "", "license": "MIT", "devDependencies": { - "@noble/curves": "..", - "esbuild": "0.18.11" + "@noble/curves": "file:..", + "esbuild": "0.20.1" }, "scripts": { "build": "npx esbuild --bundle input.js --outfile=noble-curves.js --global-name=nobleCurves" diff --git a/package.json b/package.json index 7e14f71..ad07c3a 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "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", "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", "lint": "prettier --check 'src/**/*.{js,ts}' 'test/*.js'", "format": "prettier --write 'src/**/*.{js,ts}' 'test/*.js'",