Socket
Socket
Sign inDemoInstall

@noble/curves

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@noble/curves - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

lib/esm/definitions/secp256k1.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc