Bubble-Protocol / bubble-tools

Command line developer tools for Bubble Protocol
2 stars 0 forks source link

secp256k1 unavailable, reverting to browser version #2

Open dnpotter opened 5 months ago

dnpotter commented 5 months ago

The above warning is displayed on every bubble call.

This is caused by an issue in the eccrypto library, a dependency of @bubble-protocol/crypto: https://github.com/bitchan/eccrypto/issues/86

Unfortunately there doesn't seem to be a proper fix for this without using a different library from eccrypto.

Until the issue is fixed in eccrypto, or @bubble-protocol/crypto is updated to use a different library, the following crude command can be used to obscure the error:

sed -i bak '/secp256k1 unavailable, reverting to browser version/d' <install_path>/node_modules/eccrypto/index.js

Replacing <install_path> with the bubble-tools installation location on your system.

dnpotter commented 5 months ago

A very crude fix is to filter this line from console.info within log.js.

dnpotter commented 5 months ago

Added crude fix into log.js. Leaving issue open as a reminder to remove the fix when eccrypto is updated.