Skip to content

Commit

Permalink
feat: update tests and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Nesopie authored and junderw committed Sep 8, 2024
1 parent 381bca1 commit cf65d98
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 318 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

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

**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:
1. Use a polyfill for crypto.getRandomValues()
2. Use the `--experimental-global-webcrypto` flag when running node.js.
3. Pass in a custom rng function to generate random values.

## Example

TypeScript
Expand Down
Loading

0 comments on commit cf65d98

Please sign in to comment.