Skip to content

Commit

Permalink
fix: add taproot key only
Browse files Browse the repository at this point in the history
  • Loading branch information
crisdut committed Jan 27, 2025
1 parent c39d12e commit 9648aa2
Showing 1 changed file with 1 addition and 0 deletions.
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 @@ impl<K: DeriveSet> Derive<DerivedScript> for RgbDeriver<K> {
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

0 comments on commit 9648aa2

Please sign in to comment.