f update type name mapping
authorMatt Corallo <git@bluematt.me>
Wed, 22 Jun 2022 19:28:14 +0000 (19:28 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 22 Jun 2022 19:30:21 +0000 (19:30 +0000)
c-bindings-gen/src/types.rs

index 228d6e8f221fda5a13424f6fe66832c67e302c4d..ca36c9d60e0c1dd5fc2cfd8072905c0d63515698 100644 (file)
@@ -890,7 +890,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
                        "bitcoin::bech32::u5"|"bech32::u5" => Some("crate::c_types::u5"),
                        "core::num::NonZeroU8" => Some("u8"),
 
-                       "bitcoin::secp256k1::PublicKey" => Some("crate::c_types::PublicKey"),
+                       "secp256k1::PublicKey"|"bitcoin::secp256k1::PublicKey" => Some("crate::c_types::PublicKey"),
                        "bitcoin::secp256k1::ecdsa::Signature" => Some("crate::c_types::Signature"),
                        "bitcoin::secp256k1::ecdsa::RecoverableSignature" => Some("crate::c_types::RecoverableSignature"),
                        "bitcoin::secp256k1::SecretKey" if is_ref  => Some("*const [u8; 32]"),