Skip to content

Commit 4c0b64a

Browse files
committed
Make Tr::spend_info public
1 parent a881b47 commit 4c0b64a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/descriptor/tr.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,12 @@ impl<Pk: MiniscriptKey> Tr<Pk> {
211211
}
212212
}
213213

214-
// Compute the [`TaprootSpendInfo`] associated with this descriptor if spend data is [None]
215-
// If spend data is already computed (i.e it is not None), this does not recompute it
216-
// TaprootSpendInfo is only required for spending via the script paths.
217-
fn spend_info(&self) -> Arc<TaprootSpendInfo>
214+
/// Compute the [`TaprootSpendInfo`] associated with this descriptor if spend data is `None`.
215+
///
216+
/// If spend data is already computed (i.e it is not `None`), this does not recompute it.
217+
///
218+
/// [`TaprootSpendInfo`] is only required for spending via the script paths.
219+
pub fn spend_info(&self) -> Arc<TaprootSpendInfo>
218220
where
219221
Pk: ToPublicKey,
220222
{

0 commit comments

Comments
 (0)