You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #18: feat(selector): allow multiple change sources with ChangeDescriptor
aadeca5 feat(selector)!: allow multiple change sources (nymius)
Pull request description:
**Description**
Previously, the `change_descriptor` field only accepted a definite descriptor to derive the change output script pubkey. This worked for most cases but failed for scenarios - such as silent payments - where a definite descriptor is not yet available.
To address this, introduce the `ChangeDescriptor` enum, which supports:
- The standard case of providing a definite descriptor.
- An alternative where the script pubkey and its maximum satisfaction weight can be specified directly.
This makes change output generation flexible enough to handle both standard and exceptional workflows.
Fixes#17
#### All Submissions:
* [x] I've signed all my commits
* [x] I followed the [conventional commit guidelines](https://www.conventionalcommits.org/en/v1.0.0/)
* [x] I ran `cargo +nigthly fmt` before committing
#### New Features:
* [ ] I've added tests for the new feature
* [x] I've added docs for the new feature
ACKs for top commit:
ValuedMammal:
ACK aadeca5
Tree-SHA512: 40d366ecf0c65dfc1f2048ac1953c255a3c9c945c24ecfaf65281c11342d84e76348a18c33032917d1215870827ec7e4812baa0a6589d0235dc25f637918265b
0 commit comments