Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runkit.com: Error: Cannot find module 'secp256k1' #43

Open
Overtorment opened this issue Mar 30, 2021 · 5 comments
Open

Runkit.com: Error: Cannot find module 'secp256k1' #43

Overtorment opened this issue Mar 30, 2021 · 5 comments

Comments

@Overtorment
Copy link

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

image

@junderw
Copy link
Member

junderw commented Mar 30, 2021

Yeah... this is a problem with node-secp256k1... sigh

@Overtorment
Copy link
Author

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 :-/

@junderw
Copy link
Member

junderw commented Apr 2, 2021

runkit is wonky.

if you install it without build tools it falls back to JS.

@motorina0
Copy link
Member

@Overtorment there is this PR bitcoinjs/tiny-secp256k1#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..?

@motorina0
Copy link
Member

@Overtorment this PR #54 should fix your issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants