This repository was archived by the owner on Aug 2, 2022. It is now read-only.
generateKeyPair
in Browsers Without Webpack
#737
Labels
Version of EOSJS
eosjs RC and edge
Describe the bug
To generate a public/private key pair, you need to specify that you are aware of the implications of generating a private key in an unsafe environment. Unfortunately, the only way to set that is with
process.env
which works for both nodejs and webpack projects but not browser alone. There needs to be an option for an alternative variable that can be set, such aswindow.EOSJS_KEYGEN_ALLOWED
To Reproduce
Steps to reproduce the behavior:
eosjs-key-conversions.generateKeyPair
in browser without webpackExpected behavior
An additional alternative option to set the variable in the window or global objects for browsers
The text was updated successfully, but these errors were encountered: