Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

noble-secp256k1

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

noble-secp256k1 - npm Package Compare versions

Comparing version 1.2.5 to 1.2.6

2

index.js

@@ -775,3 +775,3 @@ "use strict";

}
async function schnorrSign(msgHash, privateKey, auxRand = exports.utils.randomPrivateKey()) {
async function schnorrSign(msgHash, privateKey, auxRand = exports.utils.randomBytes()) {
if (msgHash == null)

@@ -778,0 +778,0 @@ throw new TypeError(`sign: Expected valid message, not "${msgHash}"`);

{
"name": "noble-secp256k1",
"version": "1.2.5",
"version": "1.2.6",
"description": "Fastest JS implementation of secp256k1. Independently audited, high-security, 0-dependency ECDSA & Schnorr signatures",

@@ -12,2 +12,3 @@ "main": "index.js",

"build": "tsc -d",
"build-release": "rollup -c rollup.config.js",
"lint": "prettier --print-width 100 --single-quote --check index.ts",

@@ -32,2 +33,4 @@ "test": "jest",

"devDependencies": {
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@types/jest": "^26.0.22",

@@ -39,2 +42,3 @@ "@types/node": "^14.14.37",

"prettier": "^2.2.1",
"rollup": "^2.50.4",
"ts-jest": "^26.5.4",

@@ -41,0 +45,0 @@ "typescript": "~4.2.4"

@@ -25,2 +25,5 @@ # noble-secp256k1 ![Node CI](https://github.com/paulmillr/noble-secp256k1/workflows/Node%20CI/badge.svg) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

Use NPM in node.js / browser, or include single file from
[GitHub's releases page](https://github.com/paulmillr/noble-secp256k1/releases):
> npm install noble-secp256k1

@@ -30,2 +33,3 @@

import * as secp from "noble-secp256k1";
// if you're using single file, use global variable nobleSecp256k1 instead

@@ -170,5 +174,5 @@ (async () => {

###### `utils.generateRandomPrivateKey(): Uint8Array`
###### `utils.randomPrivateKey(): Uint8Array`
Returns `Uint8Array` of 32 cryptographically secure random bytes. You can use it as private key.
Returns `Uint8Array` of 32 cryptographically secure random bytes that can be used as private key.

@@ -175,0 +179,0 @@ ###### `utils.precompute(W = 8, point = BASE_POINT): Point`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc