We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent becea42 commit 1bb08f2Copy full SHA for 1bb08f2
src/plan.rs
@@ -247,7 +247,7 @@ where
247
#[derive(Debug, Clone)]
248
pub struct Plan {
249
/// This plan's witness template
250
- pub template: Vec<Placeholder<DefiniteDescriptorKey>>,
+ pub(crate) template: Vec<Placeholder<DefiniteDescriptorKey>>,
251
/// The absolute timelock this plan uses
252
pub absolute_timelock: Option<LockTime>,
253
/// The relative timelock this plan uses
@@ -257,6 +257,11 @@ pub struct Plan {
257
}
258
259
impl Plan {
260
+ /// Returns the witness template
261
+ pub fn witness_template(&self) -> &Vec<Placeholder<DefiniteDescriptorKey>> {
262
+ &self.template
263
+ }
264
+
265
/// Returns the witness version
266
pub fn witness_version(&self) -> Option<WitnessVersion> {
267
self.descriptor.desc_type().segwit_version()
0 commit comments