From 2bd437df4ef41d14a8672fc3be3594f23a82207b Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Fri, 4 Aug 2023 22:47:59 +0000 Subject: [PATCH] readme --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 353a154..785c96f 100644 --- a/README.md +++ b/README.md @@ -43,12 +43,10 @@ If you don't like NPM, a standalone [noble-curves.js](https://github.com/paulmil The package consists of two parts: implementations (using [noble-hashes](https://github.com/paulmillr/noble-hashes)), and zero-dep abstract api. -Generic example for all curves, secp256k1: +Generic example for all curves, shown with secp256k1: ```ts -// import * from '@noble/curves'; // Error -// Use sub-imports for tree-shaking, to ensure small size of your apps -// Each curve has similar methods +// import * from '@noble/curves'; // Error: use sub-imports, to ensure small app size import { secp256k1 } from '@noble/curves/secp256k1'; // ESM and Common.js // import { secp256k1 } from 'npm:@noble/curves@1.2.0/secp256k1'; // Deno const priv = secp256k1.utils.randomPrivateKey();