@noble/curves
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -5,3 +5,3 @@ /*! @noble/curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ | ||
import { createCurve } from './_shortw_utils.js'; | ||
import { ensureBytes, concatBytes, hexToBytes, bytesToNumberBE, randomBytes } from '../utils'; | ||
import { ensureBytes, concatBytes, hexToBytes, bytesToNumberBE, randomBytes, } from '../utils'; | ||
/** | ||
@@ -8,0 +8,0 @@ * secp256k1 belongs to Koblitz curves: it has |
@@ -11,3 +11,3 @@ /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ | ||
import * as mod from './modular.js'; | ||
import { bytesToHex, concatBytes, ensureBytes, numberToBytesLE, bytesToNumberLE, hashToPrivateScalar, validateOpts as utilOpts, randomBytes as utilRandomBytes } from './utils.js'; // TODO: import * as u from './utils.js'? | ||
import { bytesToHex, concatBytes, ensureBytes, numberToBytesLE, bytesToNumberLE, hashToPrivateScalar, validateOpts as utilOpts, randomBytes as utilRandomBytes, } from './utils.js'; // TODO: import * as u from './utils.js'? | ||
import { wNAF } from './group.js'; | ||
@@ -14,0 +14,0 @@ // Be friendly to bad ECMAScript parsers by not using bigint literals like 123n |
@@ -202,3 +202,2 @@ /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ | ||
else if (typeof key === 'string') { | ||
// key = key.padStart(2 * groupLen, '0'); // Eth-like hexes | ||
if (key.length !== 2 * groupLen) | ||
@@ -205,0 +204,0 @@ throw new Error(`Expected ${groupLen} bytes of private key`); |
@@ -205,3 +205,2 @@ "use strict"; | ||
else if (typeof key === 'string') { | ||
// key = key.padStart(2 * groupLen, '0'); // Eth-like hexes | ||
if (key.length !== 2 * groupLen) | ||
@@ -208,0 +207,0 @@ throw new Error(`Expected ${groupLen} bytes of private key`); |
{ | ||
"name": "@noble/curves", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Minimal, zero-dependency JS implementation of elliptic curve cryptography", | ||
@@ -75,2 +75,12 @@ "files": [ | ||
"default": "./lib/utils.js" | ||
}, | ||
"./definitions/secp256k1": { | ||
"types": "./lib/definitions/secp256k1.d.ts", | ||
"import": "./lib/esm/definitions/secp256k1.js", | ||
"default": "./lib/definitions/secp256k1.js" | ||
}, | ||
"./definitions/ed25519": { | ||
"types": "./lib/definitions/ed25519.d.ts", | ||
"import": "./lib/esm/definitions/ed25519.js", | ||
"default": "./lib/definitions/ed25519.js" | ||
} | ||
@@ -77,0 +87,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
359432
7904