# cryptononce

> Babbage nonce creation and verification

Latest version **0.1.4** (published 2023-12-09) · Open BSV License license · 0 weekly downloads

## Install

```sh
npm install cryptononce
pnpm add cryptononce
yarn add cryptononce
bun add cryptononce
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2023-12-09 |
| First published | 2022-08-24 |
| Weekly downloads | 0 |
| License | Open BSV License |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Peer-to-peer Privacy Systems Research, LLC |
| Maintainers | tonesnotes, braydude, tyeverett |

## Links

- npm: https://www.npmjs.com/package/cryptononce
- npm.io page: https://npm.io/package/cryptononce

## Recent versions

- 0.1.4 (latest) — 2023-12-09
- 0.1.3 — 2023-12-08
- 0.1.2 — 2023-12-07
- 0.1.1 — 2023-09-28
- 0.1.0 — 2022-08-24

## README

# CryptoNonce

Babbage nonce creation and verification!

## API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

#### Table of Contents

*   [createNonce](#createnonce)
    *   [Parameters](#parameters)
*   [verifyNonce](#verifynonce)
    *   [Parameters](#parameters-1)

### createNonce

Creates a nonce derived from a privateKey

#### Parameters

*   `privateKey` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Private key to derive the nonce from.

Returns **[Buffer](https://nodejs.org/api/buffer.html)** a random nonce derived from the provided private key.

### verifyNonce

Verifies a nonce derived from a privateKey

#### Parameters

*   `nonce` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a nonce to verify as a as a base64 string.
*   `privateKey` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a privateKey as a hex string used to derive the nonce.

Returns **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** the status of the validation

## License

The license for the code in this repository is the Open BSV License.

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