This commit is contained in:
Paul Miller 2023-08-16 00:36:24 +00:00
parent 8315fe3580
commit 2ce3b825f8
No known key found for this signature in database
GPG Key ID: 697079DA6878B89B

@ -40,10 +40,8 @@ For [Deno](https://deno.land), ensure to use [npm specifier](https://deno.land/m
For React Native, you may need a [polyfill for crypto.getRandomValues](https://github.com/LinusU/react-native-get-random-values). For React Native, you may need a [polyfill for crypto.getRandomValues](https://github.com/LinusU/react-native-get-random-values).
If you don't like NPM, a standalone [noble-curves.js](https://github.com/paulmillr/noble-curves/releases) is also available. If you don't like NPM, a standalone [noble-curves.js](https://github.com/paulmillr/noble-curves/releases) is also available.
The package consists of two parts:
implementations (using [noble-hashes](https://github.com/paulmillr/noble-hashes)), and zero-dep abstract api.
- [Usage](#usage) - [Usage](#usage)
- [Implementations](#implementations)
- [ECDSA signature scheme](#ecdsa-signature-scheme) - [ECDSA signature scheme](#ecdsa-signature-scheme)
- [ECDSA public key recovery & extra entropy](#ecdsa-public-key-recovery--extra-entropy) - [ECDSA public key recovery & extra entropy](#ecdsa-public-key-recovery--extra-entropy)
- [ECDH (Elliptic Curve Diffie-Hellman)](#ecdh-elliptic-curve-diffie-hellman) - [ECDH (Elliptic Curve Diffie-Hellman)](#ecdh-elliptic-curve-diffie-hellman)
@ -72,6 +70,11 @@ implementations (using [noble-hashes](https://github.com/paulmillr/noble-hashes)
- [Projects using curves](#projects-using-curves) - [Projects using curves](#projects-using-curves)
- [License](#license) - [License](#license)
### Implementations
Implementations are utilizing [noble-hashes](https://github.com/paulmillr/noble-hashes).
[Abstract API](#abstract-api) doesn't depend on them: you can use a different hashing library.
#### ECDSA signature scheme #### ECDSA signature scheme
Generic example that works for all curves, shown for secp256k1: Generic example that works for all curves, shown for secp256k1: