-
Notifications
You must be signed in to change notification settings - Fork 39
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
Expose/get internal address #304
Expose/get internal address #304
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approach ACK. Great addition to the API. It reminded me that I had in mind of taking all methods on the Wallet type one by one and asking myself "is there a reason to keep this out of the bindings?". In this case clearly there are none. Happy to see it added.
Similar to 305, you'll need to remove the to_string()
calls in the test to pass the Clippy CI, and I'd like to have the Kotlin API docs fixed before merging. As mentioned in #305, I'm happy to do it, just let me know.
Thanks again, happy to fix this too. Can also help with adding other absent APIs. From my standpoint this and #305 are definite candidates, and simple to implement so I jumped straight to PRs. But will open issues for any 'contentious' additions in terms of whether they're needed, or if there're multiple clear implementation variants etc. |
Similarly, if you don't mind adding for now that would be great thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small fix to the tests is required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK aa842c3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK aa842c3
Concept and code looks good!
Description
Until this PR, bdk-ffi get_address did not support internal/change addresses. Any sufficiently advanced wallet will need this functionality, or be indistinguishable from an insufficiently-advanced wallet.
Notes to the reviewers
I created a separate mapping for get_internal_address instead of adding another field to get_address, which matches the existing bdk naming pattern and keeps the exposed get_{x_}address methods from being cluttered.
Changelog notice
Add
wallet::get_internal_addresses
APIChecklists
All Submissions:
cargo fmt
andcargo clippy
before committingNew Features:
Bugfixes: