From 9d0a2e25dc2d0ac154469af7b245f5b3e9e1bb26 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Fri, 3 Mar 2023 01:11:21 +0000 Subject: [PATCH] readme: esm-only --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 635b1b4..66a3b0c 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Instead, you need to import specific primitives. This is done to ensure small si Each curve can be used in the following way: ```ts -import { secp256k1 } from '@noble/curves/secp256k1'; // ECMAScript Modules (ESM) and Common.js +import { secp256k1 } from '@noble/curves/secp256k1'; // ECMAScript Modules (ESM) // import { secp256k1 } from 'npm:@noble/curves@1.2.0/secp256k1'; // Deno const priv = secp256k1.utils.randomPrivateKey(); const pub = secp256k1.getPublicKey(priv);