@@ -869,6 +869,7 @@ fn initial_clonable_types() -> HashSet<String> {
869
869
res. insert ( "crate::c_types::EightU16s" . to_owned ( ) ) ;
870
870
res. insert ( "crate::c_types::SecretKey" . to_owned ( ) ) ;
871
871
res. insert ( "crate::c_types::PublicKey" . to_owned ( ) ) ;
872
+ res. insert ( "crate::c_types::TweakedPublicKey" . to_owned ( ) ) ;
872
873
res. insert ( "crate::c_types::Transaction" . to_owned ( ) ) ;
873
874
res. insert ( "crate::c_types::Witness" . to_owned ( ) ) ;
874
875
res. insert ( "crate::c_types::WitnessVersion" . to_owned ( ) ) ;
@@ -1071,6 +1072,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1071
1072
"core::num::NonZeroU8" => Some ( "u8" ) ,
1072
1073
1073
1074
"secp256k1::PublicKey" |"bitcoin::secp256k1::PublicKey" => Some ( "crate::c_types::PublicKey" ) ,
1075
+ "bitcoin::key::TweakedPublicKey" => Some ( "crate::c_types::TweakedPublicKey" ) ,
1074
1076
"bitcoin::secp256k1::ecdsa::Signature" => Some ( "crate::c_types::ECDSASignature" ) ,
1075
1077
"bitcoin::secp256k1::schnorr::Signature" => Some ( "crate::c_types::SchnorrSignature" ) ,
1076
1078
"bitcoin::secp256k1::ecdsa::RecoverableSignature" => Some ( "crate::c_types::RecoverableSignature" ) ,
@@ -1182,6 +1184,8 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1182
1184
1183
1185
"bitcoin::secp256k1::PublicKey" |"secp256k1::PublicKey" if is_ref => Some ( "&" ) ,
1184
1186
"bitcoin::secp256k1::PublicKey" |"secp256k1::PublicKey" => Some ( "" ) ,
1187
+ "bitcoin::key::TweakedPublicKey" if is_ref => Some ( "&" ) ,
1188
+ "bitcoin::key::TweakedPublicKey" => Some ( "" ) ,
1185
1189
"bitcoin::secp256k1::ecdsa::Signature" |"bitcoin::secp256k1::schnorr::Signature" if is_ref => Some ( "&" ) ,
1186
1190
"bitcoin::secp256k1::ecdsa::Signature" |"bitcoin::secp256k1::schnorr::Signature" => Some ( "" ) ,
1187
1191
"bitcoin::secp256k1::ecdsa::RecoverableSignature" => Some ( "" ) ,
@@ -1296,6 +1300,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1296
1300
"core::num::NonZeroU8" => Some ( ").expect(\" Value must be non-zero\" )" ) ,
1297
1301
1298
1302
"bitcoin::secp256k1::PublicKey" |"secp256k1::PublicKey" => Some ( ".into_rust()" ) ,
1303
+ "bitcoin::key::TweakedPublicKey" => Some ( ".into_rust()" ) ,
1299
1304
"bitcoin::secp256k1::ecdsa::Signature" |"bitcoin::secp256k1::schnorr::Signature" => Some ( ".into_rust()" ) ,
1300
1305
"bitcoin::secp256k1::ecdsa::RecoverableSignature" => Some ( ".into_rust()" ) ,
1301
1306
"bitcoin::secp256k1::SecretKey" if !is_ref => Some ( ".into_rust()" ) ,
@@ -1414,6 +1419,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1414
1419
"u128" => Some ( "" ) ,
1415
1420
1416
1421
"bitcoin::secp256k1::PublicKey" |"secp256k1::PublicKey" => Some ( "crate::c_types::PublicKey::from_rust(&" ) ,
1422
+ "bitcoin::key::TweakedPublicKey" => Some ( "crate::c_types::TweakedPublicKey::from_rust(&" ) ,
1417
1423
"bitcoin::secp256k1::ecdsa::Signature" => Some ( "crate::c_types::ECDSASignature::from_rust(&" ) ,
1418
1424
"bitcoin::secp256k1::schnorr::Signature" => Some ( "crate::c_types::SchnorrSignature::from_rust(&" ) ,
1419
1425
"bitcoin::secp256k1::ecdsa::RecoverableSignature" => Some ( "crate::c_types::RecoverableSignature::from_rust(&" ) ,
@@ -1519,6 +1525,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1519
1525
"u128" => Some ( ".into()" ) ,
1520
1526
1521
1527
"bitcoin::secp256k1::PublicKey" |"secp256k1::PublicKey" => Some ( ")" ) ,
1528
+ "bitcoin::key::TweakedPublicKey" => Some ( ")" ) ,
1522
1529
"bitcoin::secp256k1::ecdsa::Signature" |"bitcoin::secp256k1::schnorr::Signature" => Some ( ")" ) ,
1523
1530
"bitcoin::secp256k1::ecdsa::RecoverableSignature" => Some ( ")" ) ,
1524
1531
"bitcoin::secp256k1::SecretKey" if !is_ref => Some ( ")" ) ,
0 commit comments