descriptors: allow to get underlying public key

This commit is contained in:
jp1ac4 2024-07-15 17:58:56 +01:00 committed by Michael Mallan
parent 5ee71d9df1
commit e267f66be6
No known key found for this signature in database
GPG Key ID: 5177CDCEDB0EABEB

View File

@ -613,6 +613,13 @@ impl SinglePathLianaDesc {
),
)
}
/// Reference to the underlying `Descriptor<descriptor::DescriptorPublicKey>`
pub fn as_descriptor_public_key(
&self,
) -> &descriptor::Descriptor<descriptor::DescriptorPublicKey> {
&self.0
}
}
pub enum DescKeysOrigins {