Skip to content

Commit 49a2a22

Browse files
committed
Make spend info public
1 parent 5a45c35 commit 49a2a22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/descriptor/tr.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,10 @@ 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+
/// 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+
pub fn spend_info(&self) -> Arc<TaprootSpendInfo>
218218
where
219219
Pk: ToPublicKey,
220220
{

0 commit comments

Comments
 (0)