We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0844e57 commit 6de4abeCopy full SHA for 6de4abe
src/descriptor/key.rs
@@ -138,17 +138,14 @@ pub struct DescriptorXKey<K: InnerXKey> {
138
}
139
140
impl DescriptorSinglePriv {
141
- /// Returns the public key of this key
142
- fn to_public<C: Signing>(
143
- &self,
144
- secp: &Secp256k1<C>,
145
- ) -> Result<DescriptorSinglePub, DescriptorKeyParseError> {
+ /// Returns the public key of this key.
+ fn to_public<C: Signing>(&self, secp: &Secp256k1<C>) -> DescriptorSinglePub {
146
let pub_key = self.key.public_key(secp);
147
148
- Ok(DescriptorSinglePub {
+ DescriptorSinglePub {
149
origin: self.origin.clone(),
150
key: SinglePubKey::FullKey(pub_key),
151
- })
+ }
152
153
154
0 commit comments