Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lorisleiva/web3js-issue-crypto-polyfill

A dummy repo to illustrate a potential issue with the crypto polyfill
https://github.com/lorisleiva/web3js-issue-crypto-polyfill

Last synced: 6 days ago
JSON representation

A dummy repo to illustrate a potential issue with the crypto polyfill

Awesome Lists containing this project

README

        

Steps to reproduce:

```sh
pnpm install
node ./index.cjs
```

See error:

```
Error: This runtime does not support the generation of Ed25519 key pairs.

Install and import `@solana/webcrypto-ed25519-polyfill` before generating keys in environments that do not support Ed25519.

For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20
at Object.assertKeyGenerationIsAvailable (/Users/loris/Code/web3js-test-crypto/node_modules/.pnpm/@[email protected]/node_modules/@solana/assertions/dist/index.node.cjs:36:11)
at async generateKeyPair (/Users/loris/Code/web3js-test-crypto/node_modules/.pnpm/@[email protected][email protected]/node_modules/@solana/keys/dist/index.node.cjs:8:3)

Node.js v18.13.0
```