feat(chain): add SpkIterator::descriptor method

Otherwise there will be no way to view the descriptor of the
`SpkIterator`.
This commit is contained in:
志宇 committed 2024-01-17 11:17:25 +08:00
1 parent c7b47af72f
commit 81aeaba48a
1 file changed
+5
+5
View File
@@ -87,6 +87,11 @@ where
secp: Secp256k1::verification_only(),
}
}
/// Get a reference to the internal descriptor.
pub fn descriptor(&self) -> &D {
&self.descriptor
}
}
impl<D> Iterator for SpkIterator<D>