feat(chain): add SpkIterator::descriptor method

Otherwise there will be no way to view the descriptor of the
`SpkIterator`.
This commit is contained in:
志宇
2024-01-13 18:33:01 +08:00
parent c7b47af72f
commit 81aeaba48a

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>