{"name":"secp256k1","version":"3.8.1","keywords":["ec","ecdh","ecdsa","secp256k1"],"author":{"name":"Martin Becze","email":"mjbecze@gmail.com"},"license":"MIT","_id":"secp256k1@3.8.1","contributors":[{"url":"https://github.com/kumavis","name":"Aaron Davis"},{"url":"https://github.com/phpb-com","name":"Ian Matyssik"},{"url":"http://kagami.genshiken.org/","name":"Kagami Hiiragi","email":"kagami@genshiken.org"},{"url":"https://github.com/ethers","name":"ethers"},{"url":"https://github.com/fanatid","name":"Kirill Fomichev","email":"fanatid@ya.ru"}],"homepage":"https://github.com/cryptocoinjs/secp256k1-node#readme","bugs":{"url":"https://github.com/cryptocoinjs/secp256k1-node/issues"},"dist":{"shasum":"b62a62a882d6b16f9b51fe599c6b3a861e36c59f","tarball":"http://registry-npm.ywwl.com/secp256k1/download/secp256k1-3.8.1.tgz","fileCount":122,"integrity":"sha512-tArjQw2P0RTdY7QmkNehgp6TVvQXq6ulIhxv8gaH6YubKG/wxxAoNKcbuXjDhybbc+b2Ihc7e0xxiGN744UIiQ==","signatures":[{"sig":"MEUCIGN0tm7xokMuBPC/1aLLbwCAA++eL3oA182VVvPldMOSAiEAidbDyTfpWTuNQTERkTs4hLnAZWYdqpkt0GrljtMvSLg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1009709,"size":190422,"noattachment":false,"key":"/secp256k1/-/secp256k1-3.8.1.tgz"},"main":"./index.js","_from":"file:secp256k1-3.8.1.tgz","browser":{"./index.js":"./elliptic.js"},"engines":{"node":">=4.0.0"},"gypfile":true,"scripts":{"lint":"standard","test":"npm run lint && npm run unit","unit":"tape test/index.js","install":"npm run rebuild || echo \"Secp256k1 bindings compilation fail. Pure JS implementation will be used.\"","rebuild":"node-gyp rebuild","coverage":"RANDOM_TESTS_REPEAT=1 nyc tape test/index.js","test:browser":"karma start karma.conf.js","coverage-lcov":"npm run coverage && nyc report -r lcov"},"_npmUser":{"name":"fanatid","email":"fanatid@ya.ru"},"_resolved":"/home/kirill/projects/secp256k1-node/secp256k1-3.8.0/package/secp256k1-3.8.1.tgz","_integrity":"sha512-tArjQw2P0RTdY7QmkNehgp6TVvQXq6ulIhxv8gaH6YubKG/wxxAoNKcbuXjDhybbc+b2Ihc7e0xxiGN744UIiQ==","repository":{"url":"git+https://github.com/cryptocoinjs/secp256k1-node.git","type":"git"},"_npmVersion":"10.8.2","description":"This module provides native bindings to ecdsa secp256k1 functions","directories":{},"_nodeVersion":"22.5.1","dependencies":{"nan":"^2.14.0","bip66":"^1.1.5","bn.js":"^4.11.8","drbg.js":"^1.0.1","bindings":"^1.5.0","elliptic":"^6.5.7","create-hash":"^1.2.0","safe-buffer":"^5.1.2"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.0","tape":"^4.10.1","karma":"^1.3.0","bignum":"git+https://github.com/fanatid/node-bignum.git#e688fd40dff43b03480bcdb5e4c099ee9ac27102","node-gyp":"^4.0.0","standard":"^12.0.1","karma-tap":"^3.1.1","browserify":"^16.2.3","xorshift.js":"^1.0.3","karma-browserify":"^5.0.4","karma-chrome-launcher":"^2.2.0","karma-detect-browsers":"^2.3.3","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/secp256k1_3.8.1_1729420639277_0.31680896173305495","host":"s3://npm-registry-packages"},"readme":"# secp256k1-node\n\nVersion | Mac/Linux | Windows\n------- | --------- | -------\n[![NPM Package](https://img.shields.io/npm/v/secp256k1.svg?style=flat-square)](https://www.npmjs.org/package/secp256k1) | [![Build Status](https://img.shields.io/travis/cryptocoinjs/secp256k1-node.svg?branch=master&style=flat-square)](https://travis-ci.org/cryptocoinjs/secp256k1-node) | [![AppVeyor](https://img.shields.io/appveyor/ci/fanatid/secp256k1-node.svg?branch=master&style=flat-square)](https://ci.appveyor.com/project/fanatid/secp256k1-node)\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\nThis module provides native bindings to [bitcoin-core/secp256k1](https://github.com/bitcoin-core/secp256k1). In browser [elliptic](https://github.com/indutny/elliptic) will be used.\n\nThis library is experimental, so use at your own risk. Works on node version 4.0.0 or greater.\n\n## Installation\n\n##### from npm\n\n`npm install secp256k1`\n\n##### from git\n\n```\ngit clone git@github.com:cryptocoinjs/secp256k1-node.git\ncd secp256k1-node\ngit submodule update --init\nnpm install\n```\n\n##### Windows\n\nThe easiest way to build the package on windows is to install [windows-build-tools](https://github.com/felixrieseberg/windows-build-tools).\n\nOr install the following software:\n\n  * Git: https://git-scm.com/download/win\n  * nvm: https://github.com/coreybutler/nvm-windows\n  * Python 2.7: https://www.python.org/downloads/release/python-2712/\n  * Visual C++ Build Tools: http://landinghub.visualstudio.com/visual-cpp-build-tools (Custom Install, and select both Windows 8.1 and Windows 10 SDKs)\n\nAnd run commands:\n\n```\nnpm config set msvs_version 2015 --global\nnpm install npm@next -g\n```\n\nBased on:\n\n  * https://github.com/nodejs/node-gyp/issues/629#issuecomment-153196245\n  * https://github.com/nodejs/node-gyp/issues/972\n\n## Usage\n\n* [API Reference (v3.x)](https://github.com/cryptocoinjs/secp256k1-node/blob/master/API.md)\n* [API Reference (v2.x)](https://github.com/cryptocoinjs/secp256k1-node/blob/v2.x/API.md)\n\n```js\nconst { randomBytes } = require('crypto')\nconst secp256k1 = require('secp256k1')\n// or require('secp256k1/elliptic')\n//   if you want to use pure js implementation in node\n\n// generate message to sign\nconst msg = randomBytes(32)\n\n// generate privKey\nlet privKey\ndo {\n  privKey = randomBytes(32)\n} while (!secp256k1.privateKeyVerify(privKey))\n\n// get the public key in a compressed format\nconst pubKey = secp256k1.publicKeyCreate(privKey)\n\n// sign the message\nconst sigObj = secp256k1.sign(msg, privKey)\n\n// verify the signature\nconsole.log(secp256k1.verify(msg, sigObj.signature, pubKey))\n// => true\n```\n\n\\* **.verify return false for high signatures**\n\n## Second pure js implementation\n\nProject has yet one secp256k1 implementation based on [elliptic](http://github.com/indutny/elliptic) and [bn.js](http://github.com/indutny/bn.js). The main purpose of this smaller size, high performance and easy code audit. This implementation is super experimental, use it at your own risk.\n\n## LICENSE\n\nThis library is free and open-source software released under the MIT license.\n","publish_time":1729420639542,"maintainers":[{"name":"null_radix","email":"null_radix@riseup.net"},{"name":"fanatid","email":"fanatid@ya.ru"},{"name":"jprichardson","email":"jprichardson@gmail.com"}],"_cnpm_publish_time":1729420639542,"dist-tags":{"latest":"5.0.2"}}