Socket
Socket
Sign inDemoInstall

secp256k1

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

secp256k1 - npm Package Compare versions

Comparing version 3.6.1 to 3.6.2

5

lib/elliptic/index.js

@@ -133,3 +133,6 @@ 'use strict'

return Buffer.from(ecparams.g.mul(tweak).add(pair.pub).encode(true, compressed))
var point = ecparams.g.mul(tweak).add(pair.pub)
if (point.isInfinity()) throw new Error(messages.EC_PUBLIC_KEY_TWEAK_ADD_FAIL)
return Buffer.from(point.encode(true, compressed))
}

@@ -136,0 +139,0 @@

@@ -81,3 +81,6 @@ 'use strict'

return g.mul(tweak).add(point).toPublicKey(compressed)
var result = g.mul(tweak).add(point)
if (result.inf) throw new Error(messages.EC_PUBLIC_KEY_TWEAK_ADD_FAIL)
return result.toPublicKey(compressed)
}

@@ -84,0 +87,0 @@

2

package.json
{
"name": "secp256k1",
"version": "3.6.1",
"version": "3.6.2",
"description": "This module provides native bindings to ecdsa secp256k1 functions",

@@ -5,0 +5,0 @@ "keywords": [

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