Skip to content

Commit bf692b8

Browse files
committed
Make spend info public
1 parent 5d15215 commit bf692b8

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
@@ -205,10 +205,10 @@ impl<Pk: MiniscriptKey> Tr<Pk> {
205205
}
206206
}
207207

208-
// Compute the [`TaprootSpendInfo`] associated with this descriptor if spend data is [None]
209-
// If spend data is already computed (i.e it is not None), this does not recompute it
210-
// TaprootSpendInfo is only required for spending via the script paths.
211-
fn spend_info(&self) -> Arc<TaprootSpendInfo>
208+
/// Compute the [`TaprootSpendInfo`] associated with this descriptor if spend data is [None]
209+
/// If spend data is already computed (i.e it is not None), this does not recompute it
210+
/// TaprootSpendInfo is only required for spending via the script paths.
211+
pub fn spend_info(&self) -> Arc<TaprootSpendInfo>
212212
where
213213
Pk: ToPublicKey,
214214
{

0 commit comments

Comments
 (0)