-
Notifications
You must be signed in to change notification settings - Fork 42
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
No std #74
No std #74
Conversation
This is done so that we can support wasm environments
I tested this branch out but it looks like that version of
Maybe try |
Rats, we're waiting on @Kixunil to release a new version of bip21 removing bitcoin default-features |
Ah, for some reason I thought we were already using that library. |
This doesn't work since you don't have I originally didn't bother with I will look into releasing BIP21 soon. |
FYI I came across this: https://users.rust-lang.org/t/is-disabling-features-of-a-dependency-considered-a-breaking-change/94302 Will give it some time for people to reply and decide afterwards. |
@cryptoquick, How come bitmask-core has no problem with |
Sure, we use std with WASM, works great! For those curious: |
Yeah we have to use no-std for mutiny because ldk expects you to have system time unless you are no std |
Close payjoin#70. Some people might want to use a database or a different data structure. HashMap isn't supported in no-std.
@benthecarman IIUC you could just deactivate |
I've released |
I just published
Does this work in your wasm setting @TonyGiorgio? You can see from the updated draft, as Kixunil said, no-std here is more involved than I thought. I'd definitely run a mutinynet payjoin receiver at payjoin.org and a new version of relayed payjoin is getting ready to drop, too. |
Cool thanks! It looks like 0.8.1 works when I include it in my cargo and run a build. TBH some of the rust dependency hell confuses me sometimes. Can't tell if its sometimes just problems with wasm-pack, LDK, or general rust.
Would love that! Also been meaning to ask, we've worked out a way to do p2p connections from mobile going through a websocket proxy. If we had two peers talking to each other, would it be possible with this library to get them to do a payjoin when one is paying the other? I haven't looked too deeply at the API's yet but at least for paying a server it should be no problem. |
Yes. There are 2 caveats to look out for
Because of caveat 1, it might be best to release this to production until the encryption & authentication is dealt with, but I'd love to see a mutinynet rollout of a relay like you describe to prove the concept and later have as a fallback p.s. a final consideration I forgot to mention for a new protocol is asynchrony. It solves so many ux problems. |
Hmm, for a while I was thinking about PayJoin v 2.0 and I'm now convinced we should do it. I will discuss with folks at dev/hack/day. @DanGould we could do some sort of video call I guess. |
Hell yes. I'd like for us to have a v2 document drafted to talk about. I made an unencrypted public payjoin matrix room to organize https://matrix.to/#/%23payjoin%3Amatrix.org |
Looks like Mutiny and other wasm projects can use this library without |
Conform to wasm restrictions for MutinyWallet/mutiny-node#194
bitcoin/rand
is a reexport ofsecp256k1/rand
which is no-std@TonyGiorgio I think these are the changes you're looking for