-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add examples on how to use the Extras #11
Comments
That's all @Kixunil's work, not mine. Still useful to have examples, especially when this crate gets used in bindings |
I think we could show how library-defined and later duplicating the de/serialization logic Where it could be defined as pub struct WailaExtras {
pub lightning: Option<Bolt11Invoice>,
pub pj_extras: Option<PayjoinExtras>
} and then use the bip21 defined functions like Right now the payjoin library actually implements 2 separate Extras, |
Good point. I think I had some macros in mind to help with this but I don't remember it well. |
Macros would be great to allow builders for |
For now can look at @DanGould's
https://github.com/chaincase-app/payjoin/blob/master/payjoin/src/uri.rs
The text was updated successfully, but these errors were encountered: