readme: esm-only

This commit is contained in:
Paul Miller 2023-03-03 01:11:21 +00:00
parent 7c461af2b2
commit 9d0a2e25dc
No known key found for this signature in database
GPG Key ID: 697079DA6878B89B

@ -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);