-
Notifications
You must be signed in to change notification settings - Fork 332
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
The Wallet.is_mine() function should return K #1042
Comments
Note |
@nondiremanuel we didn't discussed this one yesterday but I think it belongs in alpha.3. |
@notmandatory great, thanks for letting me know! |
As discussed in W39 Lib Team Call, I think that the methods prefixed with |
I agree we should add a new function. What should we call it? does something like this make sense? |
|
Let me take this up, @notmandatory. |
Is there actually anything to do here. What's wrong with |
Idiomatically, I think |
updated docs to point `derivation_of_spk` function to find whether a `KeychainKind` exits for the given `script` fix bitcoindevkit#1042
updated docs to point `derivation_of_spk` function to find whether a `KeychainKind` exits for the given `script` fix bitcoindevkit#1042
A likely small change but I think we should push to 2.0 milestone. |
Since we have |
Describe the enhancement
The
Wallet.is_mine(&self, script: &[Script])
function currently returns abool
representing "whether or not a script is part of this wallet (either internal or external)". It would be more useful to know whichKeychainKind
the script was found for, orNone
if not one of my scripts:Use case
A request came up on discord about how to figure out which output is the change. Having
is_mine()
tell you which chain a script is for would make this easy to figure out.The text was updated successfully, but these errors were encountered: