Skip to content

Commit cf65d98

Browse files
Nesopiejunderw
authored andcommitted
feat: update tests and readme
1 parent 381bca1 commit cf65d98

File tree

6 files changed

+49
-318
lines changed

6 files changed

+49
-318
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
A library for managing SECP256k1 keypairs written in TypeScript with transpiled JavaScript committed to git.
55

6+
**Note** `ECPair`.makeRandom() uses the `crypto.getRandomValues` if there is no custom `rng` function provided. This API currently is still an experimental feature as of Node.js 18.19.0. To work around this you can do one of the following:
7+
1. Use a polyfill for crypto.getRandomValues()
8+
2. Use the `--experimental-global-webcrypto` flag when running node.js.
9+
3. Pass in a custom rng function to generate random values.
10+
611
## Example
712

813
TypeScript

0 commit comments

Comments
 (0)