-
Notifications
You must be signed in to change notification settings - Fork 332
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
Problem at use bdk 0.19 with wasm #646
Problem at use bdk 0.19 with wasm #646
Comments
If anyone wants to repro, check out this commit: |
Apparentely is an error of rust-bitcoin/secp256k1 |
Thanks for getting to the bottom of this with the rust-bitcoin team. Please keep us updated on when |
Hi, yeah it will be necessary to update for what I see. Would you think better to keep open this issue? |
Something of interest was said about that in the call? |
I think it's good to keep this issue open until what ever changes we need in |
rust-seccp256k1 was corrected (rust-bitcoin/rust-secp256k1#470 (comment)) and is realeased with new changes, version 0.24. rust-bitcoin is updated to new rust-secp256k1 version on master branch but it's not released a new version yet, so we must to wait until that. |
rust-bitcoin new version is going to be released soon: rust-bitcoin/rust-bitcoin#1117 (comment) |
Let us know once a release candidate is out, I'll update bdk asap |
They have this milestone: https://github.com/rust-bitcoin/rust-bitcoin/milestone/13 appears that it's going to be soon. |
rust-bitcoin 0.29 is released yet |
With rust-bitcoin 0.29 ready, here's a list of PRs / issues currently at play in order to update BDK to rust-bitcoin 0.29: |
rust-bicoincore-rpc part is done yet, now is time for rust-bitcoin/bitcoind#82 and rust-bitcoin/rust-miniscript#452, but they need a new release of rust-bitcoin-rpc: rust-bitcoin/rust-bitcoincore-rpc#239 |
What I'm doing for the BDK playground is using a patched version of BDK that doesn't use
Since the secp documentation states:
I suppose this quick fix is not really safe to use in mainnet - the playground is testnet only, so good enough. Consider this only if your application is still in a testing phase and not being used by anyone in production. |
Thanks, I think is probable that we try something like this while we are testing. |
New release of rust-bitcoincore-rpc https://github.com/rust-bitcoin/rust-bitcoincore-rpc/releases/tag/v0.16.0 |
To help me understand, the dependency PRs that need to be released to fix this issue:
I'll update this comment as PRs get added, merged, and released. Please leave a comment below if I missed anything and I will add. |
Tried to bump the dep but at the moment I've got RCasatta/electrsd#39 Do we need to update with bitcoin 0.29.0 also rust-electrum-client? |
Yeah, it seems like that from |
I added |
Re-opening as bitcoindevkit/rust-electrum-client@3adfbd7 moved towards the fix, but didn't really fix this :) |
In rust-miniscript this PR is needed to finnnish: rust-bitcoin/rust-miniscript#450 |
Hi, rust-miniscript master branch is with rust-bitcoin 0.29 yet; but they don't have a release for now, they have this draft PR: rust-bitcoin/rust-miniscript#462 |
I was able to find a workaround for bitcoindevkit/bdk-cli#117, try adding these lines to the
Let me know if it works for you, so that we can close the issue |
We're another step closer to being able to upgrade to |
I'll start working on the update but I don't think we'll make it in time for this release unfortunately |
@afilini That's fine now that we have @danielabrozzoni 's workaround. It's much more important for us at DIBA to get #757 in. |
@danielabrozzoni Found a problem with the rand 0.6 workaround: |
There's not much we can do about that, BDK itself depends on rand I have a PR already open, in draft, if you want to follow the process: #770 |
I've subscribed to the discussion there, thanks! |
A new release 0.8.0 of rust-miniscript with rust-bitcoin 0.29 was released! 🎉 https://github.com/rust-bitcoin/rust-miniscript/releases/tag/8.0.0 |
this issue should be fixed by #770 |
Describe the bug
Bdk fails on the web.
I think must be some thing related to rand crate.
To Reproduce
Create a wallet and call synchronize
Expected behavior
Working as in the console, without problems (and as in 0.18 and previous versions).
Build environment
Additional context
That's the error:
Uncaught (in promise) RuntimeError: unreachable
at __rust_start_panic (67d29ce8a8f7d806078e.module.wasm:0xc6d5d8)
at rust_panic (67d29ce8a8f7d806078e.module.wasm:0xc55f4c)
at std::panicking::rust_panic_with_hook::he2a025723e105e28 (67d29ce8a8f7d806078e.module.wasm:0x960d29)
at std::panicking::begin_panic_handler::{{closure}}::hd9f8c213ec91b9d5 (67d29ce8a8f7d806078e.module.wasm:0xa6ac56)
at std::sys_common::backtrace::__rust_end_short_backtrace::h6efd730283875809 (67d29ce8a8f7d806078e.module.wasm:0xc6c185)
at rust_begin_unwind (67d29ce8a8f7d806078e.module.wasm:0xc16d18)
at core::panicking::panic_fmt::hb02133958c1e7d35 (67d29ce8a8f7d806078e.module.wasm:0xc24531)
at rand::rngs::thread::THREAD_RNG_KEY::__init::{{closure}}::ha2ad45ff6630e75f (67d29ce8a8f7d806078e.module.wasm:0xa55aef)
at core::result::Result<T,E>::unwrap_or_else::hdc727ae752f97c76 (67d29ce8a8f7d806078e.module.wasm:0x73eae4)
at rand::rngs::thread::THREAD_RNG_KEY::__init::hfb75fbbba2c214fb (67d29ce8a8f7d806078e.module.wasm:0x80efe3)
The text was updated successfully, but these errors were encountered: