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 0.0.3 to 0.0.4

2

index.js

@@ -7,3 +7,2 @@ /**

var secpNode = require('bindings')('secp256k1');
var assert = require('assert');

@@ -129,3 +128,2 @@ /**

exports.createPublicKey = function(secKey, compressed){
assert(secKey.length === 32, 'the sercet key needs to be 32 bytes');
compressed = compressed ? 1 : 0;

@@ -132,0 +130,0 @@ return secpNode.pubKeyCreate(secKey, compressed);

2

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

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -42,3 +42,3 @@ secp256k1 [![Build Status](https://travis-ci.org/wanderer/secp256k1-node.svg?branch=master)](https://travis-ci.org/wanderer/secp256k1-node)

secp256k1.verifySecetKey(sercetKey)
secp256k1.verifySecretKey(secretKey)
-----------------------------

@@ -49,5 +49,5 @@ Verify an ECDSA secret key.

**sercetKey**: Buffer, the sercet Key to verify
**secretKey**: Buffer, the secret Key to verify
**Returns**: Boolean, `true` if sercet key is valid, `false` sercet key is invalid
**Returns**: Boolean, `true` if secret key is valid, `false` secret key is invalid

@@ -62,3 +62,3 @@ secp256k1.verifyPublicKey(publicKey)

**Returns**: Boolean, `true` if public key is valid, `false` sercet key is invalid
**Returns**: Boolean, `true` if public key is valid, `false` secret key is invalid

@@ -79,3 +79,3 @@ secp256k1.sign(secretkey, msg, cb)

secp256k1.signCompact(sercetKey, msg, cb)
secp256k1.signCompact(secretKey, msg, cb)
-----------------------------

@@ -86,3 +86,3 @@ Create a compact ECDSA signature (64 byte + recovery id). Runs asynchronously if given a callback

**sercetKey**: Buffer, a 32-byte secret key (assumed to be valid)
**secretKey**: Buffer, a 32-byte secret key (assumed to be valid)

@@ -99,3 +99,3 @@ **msg**: Buffer, the message being signed

- result.s
- result.recoveryID
- result.recoveryId

@@ -102,0 +102,0 @@ secp256k1.verify(pubKey, mgs, sig)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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