# @node-lightning/secp256k1

> Wrapper for Bitcoin libsecp256k1

Latest version **0.28.0** (published 2022-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @node-lightning/secp256k1
pnpm add @node-lightning/secp256k1
yarn add @node-lightning/secp256k1
bun add @node-lightning/secp256k1
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.28.0 |
| Published | 2022-11-07 |
| First published | 2022-01-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 137 |
| Author | Brian Mancini |
| Maintainers | bmancini55 |
| Keywords | node-lightning, secp256k1, bitcoin |

## Links

- npm: https://www.npmjs.com/package/@node-lightning/secp256k1
- Repository: https://github.com/altangent/node-lightning
- Homepage: https://github.com/altangent/node-lightning/tree/master/packages/<NAME>
- Issues: https://github.com/altangent/node-lightning/issues
- npm.io page: https://npm.io/package/@node-lightning/secp256k1

## Dependencies (2)

- [node-gyp](https://npm.io/package/node-gyp.md) ^8.4.0
- [node-addon-api](https://npm.io/package/node-addon-api.md) ^4.2.0

## Recent versions

- 0.28.0 (latest) — 2022-11-07
- 0.27.4 — 2022-09-16
- 0.27.2 — 2022-09-16
- 0.27.0 — 2022-01-10

## README

# @node-lightning/secp256k1

This library is heavily based on the [secp256k1](https://www.npmjs.com/package/secp256k1). The
primary changes to this library are:

-   remove dependency on Elliptic.js for in-browser usage
-   streamlined build dependencies (see below)
-   update reference to [libsecp256k1](https://github.com/bitcoin-core/secp256k1)

## Install

To improve the security of this module (reduce dependencies and allow audibility), the native build process is performed upon installation.

The build processes uses [`node-gyp`](https://www.npmjs.com/package/node-gyp) and its prerequisites must be available for the package to install correctly. Refer to the `node-gyp` [installation instructions]() for full details for your target environment.

Note: The [libsecp256k1](https://github.com/bitcoin-core/secp256k1) submodule is packaged in the package bundle (prior versions fetched code) so that `git` is no longer an installation requirement.

## Local Build

To perform a local build of the module requires initializing the `libsecp256k1` submodule:

```
git submodule update --init
```

You can then perform a standard `npm install`.

---
_Source: https://npm.io/package/@node-lightning/secp256k1 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
