Runkit.com: Error: Cannot find module 'secp256k1'
A bit weird I can use bitcoinjs-lib on runkit with no issues
Error: Cannot find module 'secp256k1'
Require stack:
- /app/available_modules/1617109044000/bolt11/payreq.js
- /app/index.js
at Module._resolveFilename in core node:internal/modules/cjs/loader — line 924
at Module._load in core node:internal/modules/cjs/loader — line 769
at Module.require in core node:internal/modules/cjs/loader — line 996
at require in core node:internal/modules/cjs/helpers — line 92
in bolt11/payreq.js — line 5

Yeah... this is a problem with node-secp256k1... sigh
whats the problem exactly? something on runkit's side..? is it possible to force bitcoinjs to use purejs EC? i mean, we do it somehow in bluewallet, but i forgot how exactly i wired this in bw :-/
runkit is wonky.
if you install it without build tools it falls back to JS.
@Overtorment there is this PR https://github.com/bitcoinjs/tiny-secp256k1/pull/69
If we expose recover() in tiny-secp256k1, then bolt11 can use tiny-secp256k1 (instead of secp256k1)
However I am blocked, is there anyone with Rust skills that could give a hand..?
@Overtorment this PR https://github.com/bitcoinjs/bolt11/pull/54 should fix your issue