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

Use bitcoin-ffi types instead of our own bitcoin module. #4

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

DanGould
Copy link

@DanGould DanGould commented Nov 13, 2024

These changes depend on bitcoin-ffi proc macros

These changes import bitcoin-ffi using uniffi::use_udl_object!, but proc macros would obsolete these lines.

We still have an incomplete but effective PsbtInput type in our bitcoin module, but everything else works.

close #3

Comment on lines +387 to +388
pub fn utxos_to_be_locked(&self) -> Vec<crate::OutPoint> {
let mut outpoints: Vec<crate::OutPoint> = Vec::new();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OutPoint is imported from crate::bitcoin_ffi, why the crate modifier?

Import types from UDL and re-export as bitcoin_ffi to replace the
bitcoin module.
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

Successfully merging this pull request may close these issues.

Use bitcoin-ffi types instead of redefining them in the payjoin_ffi::bitcoin module
2 participants