From 8d713fc758489b388081d9c6d79ae11967906fb7 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Sun, 12 Dec 2021 00:54:42 +0400 Subject: [PATCH] Release 1.3.2. --- README.md | 7 ++++++- package.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 966e8d3..670cf28 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,10 @@ Use NPM in node.js / browser, or include single file from > npm install @noble/secp256k1 ```js +// Common.js and ECMAScript Modules (ESM) import * as secp from "@noble/secp256k1"; -// if you're using single file, use global variable nobleSecp256k1 instead +// If you're using single file, use global variable instead: +// nobleSecp256k1 (async () => { // You pass either a hex string, or Uint8Array @@ -39,6 +41,9 @@ import * as secp from "@noble/secp256k1"; const signature = await secp.sign(messageHash, privateKey); const isSigned = secp.verify(signature, messageHash, publicKey); + // Canonical signatures + const signatureC = await secp.sign(messageHash, privateKey, { canonical: true }); + // Supports Schnorr signatures const rpub = secp.schnorr.getPublicKey(privateKey); const rsignature = await secp.schnorr.sign(messageHash, privateKey); diff --git a/package.json b/package.json index 0d90987..cd87fba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@noble/secp256k1", - "version": "1.3.1", + "version": "1.3.2", "description": "Fastest JS implementation of secp256k1. Independently audited, high-security, 0-dependency ECDSA & Schnorr signatures", "files": [ "lib"