-
Notifications
You must be signed in to change notification settings - Fork 402
Move BOLT 12 into its own crate #3732
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
Comments
Played with this, I don't really actually think its worth it as we'd have to first split out all our TLV and serialization logic into some kind of |
Hmm, just want to mention that I've be in favor of the original idea (splitting out BOLT12-types to a crate similar to IMO it would also be pretty powerful to use these crates as initial PoC for providing Uniffi bindings in |
I'm not sure what's stopping them? It being in the same crate isn't really a huge deal, the compiler should happily remove stuff from the finished binary that's unused. It impacts compile-time, but not hugely, most developers aren't re-compiling all dependencies very often. The only reason to do this would be if we want to depend on something that depends on BOLT12, IMO.
Hmm, yea, possible, though again we could do that now. I'd also very much like to avoid maintaining our own bindings crate for the full API since that is a lot of work. We should really look into having our existing bindings generation flow generate UniFFI bindings, instead, IMO......some day. |
As long as there are no dependencies we want to take that want to depend on our invoice types, there's no reason to have them in a separate crate, but with the addition of
bitcoin-payment-instructions
I think that might change. It might be nice to be able to have apay_for
method inChannelManager
for abitcoin-payment-instructions::FixedAmountPaymentInstructions
, but that would require the BOLT 12 structs (even if not the serialization for them) living in a separate crate.The text was updated successfully, but these errors were encountered: