feat: public key generation from descriptors#355
feat: public key generation from descriptors#355sdmg15 wants to merge 1 commit intobitcoindevkit:masterfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #355 +/- ##
==========================================
+ Coverage 85.24% 85.26% +0.01%
==========================================
Files 23 23
Lines 8230 8273 +43
==========================================
+ Hits 7016 7054 +38
- Misses 1214 1219 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| use crate::test_utils::insert_tx; | ||
|
|
||
| #[test] | ||
| fn test_generate_publick_keys() { |
There was a problem hiding this comment.
minor typo in function name k in public
| fn test_generate_publick_keys() { | |
| fn test_generate_public_keys() { |
|
Since it can be done using rust-miniscript I don't think it's a high priority. Out of curiosity are you sure there's no way to return a public key (or keys) from a Bare, Sh, or Wsh? or is there a reason why that's not desirable? |
I'm happy to review the API if we want to return multiple public keys. The initial thought was returning only a single one. For wsh, sh to get the keys should require to parse the raw miniscript looking for |

Description
This PR as a new function to the wallet API
public_key_at_index(keychain, index)which returns the public key found at the specified index. It closes #209Notes to the reviewers
I explicitly matched all arms branches of the
Descriptor<DefiniteDescriptorKey>so that if a new type is added in the future it signals there is a need to update this function too.Changelog notice
public_key_at_index(keychain, index)which returns the public key found at the specified index.Checklists
All Submissions:
just pbefore pushingNew Features: