# @types/noise-curve-secp

> TypeScript definitions for noise-curve-secp

Latest version **3.0.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/noise-curve-secp
pnpm add @types/noise-curve-secp
yarn add @types/noise-curve-secp
bun add @types/noise-curve-secp
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.3 |
| Published | 2023-11-07 |
| First published | 2022-11-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/noise-curve-secp
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/noise-curve-secp
- npm.io page: https://npm.io/package/@types/noise-curve-secp

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 3.0.3 (latest) — 2023-11-07
- 3.0.0 (ts4.1) — 2022-11-08
- 3.0.2 — 2023-10-18
- 3.0.1 — 2023-09-23

## README

# Installation
> `npm install --save @types/noise-curve-secp`

# Summary
This package contains type definitions for noise-curve-secp (https://github.com/chm-diederichs/noise-curve-secp256k1#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/noise-curve-secp.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/noise-curve-secp/index.d.ts)
````ts
/// <reference types="node" />

export const DHLEN: 32;
export const PKLEN: 33;
export const SKLEN: 32;
export const ALG: "secp256k1";
export const name: typeof ALG;

/**
 * Generate a new keypair, optionally pass in a preexisting `privKey`.
 */
export function generateKeyPair(privKey?: Buffer | Uint8Array): KeyPair;
/**
 * Perform DH between `publicKey` and `secretKey` and return the result.
 */
export function dh(publicKey: Buffer | Uint8Array, secretKey: Pick<KeyPair, "secretKey">): Buffer;

export interface KeyPair {
    publicKey: Buffer | Uint8Array;
    secretKey: Buffer | Uint8Array;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [BendingBender](https://github.com/BendingBender).

---
_Source: https://npm.io/package/@types/noise-curve-secp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
