Skip to content

Commit

Permalink
chore: the address of keychain internal also tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Crayon-Shin-chan-bitlightlabs committed Jan 14, 2025
1 parent 55a814a commit b08fdfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ impl<K: DeriveXOnly> Derive<DerivedScript> for TapretKey<K> {
let index = index.into();
let terminal = Terminal::new(keychain, index);
let internal_key = self.tr.as_internal_key().derive(keychain, index);
if keychain.into_inner() == RgbKeychain::Tapret as u8 {
let keychain = keychain.into_inner();
if keychain == RgbKeychain::Internal as u8 || keychain == RgbKeychain::Tapret as u8 {

Check warning on line 168 in src/descriptor.rs

View check run for this annotation

Codecov / codecov/patch

src/descriptor.rs#L167-L168

Added lines #L167 - L168 were not covered by tests
if let Some(tweak) = self.tweaks.get(&terminal) {
let script_commitment = TapScript::commit(tweak);
let tap_tree = TapTree::with_single_leaf(script_commitment);
Expand Down

0 comments on commit b08fdfa

Please sign in to comment.