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
Updated is_mine documentation #1323
Updated is_mine documentation #1323
Conversation
Sure I support reimplementing in terms of |
@LLFourn rename this? Could be Also with regards to;
I think this means to say that it will return |
I don't like
I think it was accurate. That's one of the main functions of the |
Since this is just a docs and internal implementation change that doesn't change the API I'd like to move it to a post 1.0 milestone. |
crates/bdk/src/wallet/mod.rs
Outdated
/// Determines if `script` is associated with either the internal or external keychain of the wallet. | ||
/// | ||
/// To determine if the `script` belongs specifically to either | ||
/// the internal or external keychain, use the `wallet.derivation_of_spk()` method. |
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.
Can we create a link for wallet.derivation_of_spk
?
e4f7789
to
4a8452f
Compare
I closed this but would like to revisit this post 1.0 release. |
Description
To clarify the purpose of a method and to indicate how to get more information from the wallet
Notes to the reviewers
We can also change the how is_mine works by calling
derivation_of_spk
directly, so its more clear how the internals work. This way rather than having the docs explicitly call out the method, they can jump to source.Checklists
All Submissions:
cargo fmt
andcargo clippy
before committing