Skip to content

Commit 81aeaba

Browse files
committed
feat(chain): add SpkIterator::descriptor method
Otherwise there will be no way to view the descriptor of the `SpkIterator`.
1 parent c7b47af commit 81aeaba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/chain/src/spk_iter.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ where
8787
secp: Secp256k1::verification_only(),
8888
}
8989
}
90+
91+
/// Get a reference to the internal descriptor.
92+
pub fn descriptor(&self) -> &D {
93+
&self.descriptor
94+
}
9095
}
9196

9297
impl<D> Iterator for SpkIterator<D>

0 commit comments

Comments
 (0)