Skip to content
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

fix: add taproot key only #281

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
let terminal = Terminal::new(keychain, index);
let mut vec = Vec::with_capacity(tweaks.0.len());
for internal_key in tr.as_internal_key().derive(keychain, index) {
vec.push(DerivedScript::TaprootKeyOnly(internal_key.into()));

Check warning on line 145 in src/descriptor.rs

View check run for this annotation

Codecov / codecov/patch

src/descriptor.rs#L145

Added line #L145 was not covered by tests
for tweak in tweaks.get(&terminal).into_iter().flatten() {
let script_commitment = TapScript::commit(tweak);
let tap_tree = TapTree::with_single_leaf(script_commitment);
Expand Down
Loading