Comparing version 0.0.3 to 0.0.4
@@ -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); |
{ | ||
"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
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
648349
62
217