@@ -548,6 +548,7 @@ impl<'mod_lifetime, 'crate_lft: 'mod_lifetime> ImportResolver<'mod_lifetime, 'cr
548
548
// Add primitives to the "imports" list:
549
549
Self :: insert_primitive ( & mut imports, "bool" ) ;
550
550
Self :: insert_primitive ( & mut imports, "u128" ) ;
551
+ Self :: insert_primitive ( & mut imports, "i64" ) ;
551
552
Self :: insert_primitive ( & mut imports, "u64" ) ;
552
553
Self :: insert_primitive ( & mut imports, "u32" ) ;
553
554
Self :: insert_primitive ( & mut imports, "u16" ) ;
@@ -814,6 +815,7 @@ fn initial_clonable_types() -> HashSet<String> {
814
815
res. insert ( "crate::c_types::Transaction" . to_owned ( ) ) ;
815
816
res. insert ( "crate::c_types::Witness" . to_owned ( ) ) ;
816
817
res. insert ( "crate::c_types::WitnessVersion" . to_owned ( ) ) ;
818
+ res. insert ( "crate::c_types::TxIn" . to_owned ( ) ) ;
817
819
res. insert ( "crate::c_types::TxOut" . to_owned ( ) ) ;
818
820
res. insert ( "crate::c_types::Signature" . to_owned ( ) ) ;
819
821
res. insert ( "crate::c_types::RecoverableSignature" . to_owned ( ) ) ;
@@ -948,6 +950,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
948
950
pub fn is_primitive ( & self , full_path : & str ) -> bool {
949
951
match full_path {
950
952
"bool" => true ,
953
+ "i64" => true ,
951
954
"u64" => true ,
952
955
"u32" => true ,
953
956
"u16" => true ,
@@ -1011,21 +1014,27 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1011
1014
"bitcoin::secp256k1::ecdsa::RecoverableSignature" => Some ( "crate::c_types::RecoverableSignature" ) ,
1012
1015
"bitcoin::secp256k1::SecretKey" if is_ref => Some ( "*const [u8; 32]" ) ,
1013
1016
"bitcoin::secp256k1::SecretKey" if !is_ref => Some ( "crate::c_types::SecretKey" ) ,
1017
+ "bitcoin::secp256k1::KeyPair" if !is_ref => Some ( "crate::c_types::SecretKey" ) ,
1014
1018
"bitcoin::secp256k1::Scalar" if is_ref => Some ( "*const crate::c_types::BigEndianScalar" ) ,
1015
1019
"bitcoin::secp256k1::Scalar" if !is_ref => Some ( "crate::c_types::BigEndianScalar" ) ,
1016
1020
"bitcoin::secp256k1::ecdh::SharedSecret" if !is_ref => Some ( "crate::c_types::ThirtyTwoBytes" ) ,
1017
1021
1018
- "bitcoin::blockdata::script::Script" if is_ref => Some ( "crate::c_types::u8slice" ) ,
1019
- "bitcoin::blockdata::script::Script" if !is_ref => Some ( "crate::c_types::derived::CVec_u8Z" ) ,
1022
+ "bitcoin::blockdata::script::Script" | "bitcoin::Script" if is_ref => Some ( "crate::c_types::u8slice" ) ,
1023
+ "bitcoin::blockdata::script::Script" | "bitcoin::Script" if !is_ref => Some ( "crate::c_types::derived::CVec_u8Z" ) ,
1020
1024
"bitcoin::OutPoint" |"bitcoin::blockdata::transaction::OutPoint" => Some ( "crate::lightning::chain::transaction::OutPoint" ) ,
1021
1025
"bitcoin::blockdata::transaction::Transaction" |"bitcoin::Transaction" => Some ( "crate::c_types::Transaction" ) ,
1022
1026
"bitcoin::Witness" => Some ( "crate::c_types::Witness" ) ,
1023
- "bitcoin::TxOut" |"bitcoin::blockdata::transaction::TxOut" if !is_ref => Some ( "crate::c_types::TxOut" ) ,
1027
+ "bitcoin::TxIn" |"bitcoin::blockdata::transaction::TxIn" if !is_ref => Some ( "crate::c_types::TxIn" ) ,
1028
+ "bitcoin::TxOut" |"bitcoin::blockdata::transaction::TxOut" => Some ( "crate::c_types::TxOut" ) ,
1024
1029
"bitcoin::network::constants::Network" => Some ( "crate::bitcoin::network::Network" ) ,
1025
1030
"bitcoin::util::address::WitnessVersion" => Some ( "crate::c_types::WitnessVersion" ) ,
1026
1031
"bitcoin::blockdata::block::BlockHeader" if is_ref => Some ( "*const [u8; 80]" ) ,
1027
1032
"bitcoin::blockdata::block::Block" if is_ref => Some ( "crate::c_types::u8slice" ) ,
1028
1033
1034
+ "bitcoin::PackedLockTime" |"bitcoin::blockdata::locktime::PackedLockTime" => Some ( "u32" ) ,
1035
+
1036
+ "bitcoin::psbt::PartiallySignedTransaction" if !is_ref => Some ( "crate::c_types::derived::CVec_u8Z" ) ,
1037
+
1029
1038
"bitcoin::PubkeyHash" |"bitcoin::hash_types::PubkeyHash" |
1030
1039
"bitcoin::hash_types::WPubkeyHash" |
1031
1040
"bitcoin::ScriptHash" |"bitcoin::hash_types::ScriptHash"
@@ -1045,11 +1054,11 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1045
1054
"bitcoin::secp256k1::Message" if !is_ref => Some ( "crate::c_types::ThirtyTwoBytes" ) ,
1046
1055
"lightning::ln::PaymentHash" |"lightning::ln::PaymentPreimage" |"lightning::ln::PaymentSecret"
1047
1056
|"lightning::ln::channelmanager::PaymentId" |"lightning::ln::channelmanager::InterceptId"
1048
- |"lightning::chain::keysinterface::KeyMaterial "
1057
+ |"lightning::sign::KeyMaterial" | "lightning::chain::ClaimId "
1049
1058
if is_ref => Some ( "*const [u8; 32]" ) ,
1050
1059
"lightning::ln::PaymentHash" |"lightning::ln::PaymentPreimage" |"lightning::ln::PaymentSecret"
1051
1060
|"lightning::ln::channelmanager::PaymentId" |"lightning::ln::channelmanager::InterceptId"
1052
- |"lightning::chain::keysinterface::KeyMaterial "
1061
+ |"lightning::sign::KeyMaterial" | "lightning::chain::ClaimId "
1053
1062
if !is_ref => Some ( "crate::c_types::ThirtyTwoBytes" ) ,
1054
1063
1055
1064
"lightning::io::Read" => Some ( "crate::c_types::u8slice" ) ,
@@ -1111,23 +1120,29 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1111
1120
"bitcoin::secp256k1::ecdsa::RecoverableSignature" => Some ( "" ) ,
1112
1121
"bitcoin::secp256k1::SecretKey" if is_ref => Some ( "&::bitcoin::secp256k1::SecretKey::from_slice(&unsafe { *" ) ,
1113
1122
"bitcoin::secp256k1::SecretKey" if !is_ref => Some ( "" ) ,
1123
+ "bitcoin::secp256k1::KeyPair" if !is_ref => Some ( "::bitcoin::secp256k1::KeyPair::new(" ) ,
1114
1124
"bitcoin::secp256k1::Scalar" if is_ref => Some ( "&" ) ,
1115
1125
"bitcoin::secp256k1::Scalar" if !is_ref => Some ( "" ) ,
1116
1126
"bitcoin::secp256k1::ecdh::SharedSecret" if !is_ref => Some ( "::bitcoin::secp256k1::ecdh::SharedSecret::from_bytes(" ) ,
1117
1127
1118
- "bitcoin::blockdata::script::Script" if is_ref => Some ( "&::bitcoin::blockdata::script::Script::from(Vec::from(" ) ,
1119
- "bitcoin::blockdata::script::Script" if !is_ref => Some ( "::bitcoin::blockdata::script::Script::from(" ) ,
1128
+ "bitcoin::blockdata::script::Script" | "bitcoin::Script" if is_ref => Some ( "&::bitcoin::blockdata::script::Script::from(Vec::from(" ) ,
1129
+ "bitcoin::blockdata::script::Script" | "bitcoin::Script" if !is_ref => Some ( "::bitcoin::blockdata::script::Script::from(" ) ,
1120
1130
"bitcoin::blockdata::transaction::Transaction" |"bitcoin::Transaction" if is_ref => Some ( "&" ) ,
1121
1131
"bitcoin::blockdata::transaction::Transaction" |"bitcoin::Transaction" => Some ( "" ) ,
1122
1132
"bitcoin::Witness" if is_ref => Some ( "&" ) ,
1123
1133
"bitcoin::Witness" => Some ( "" ) ,
1124
1134
"bitcoin::OutPoint" |"bitcoin::blockdata::transaction::OutPoint" => Some ( "crate::c_types::C_to_bitcoin_outpoint(" ) ,
1135
+ "bitcoin::TxIn" |"bitcoin::blockdata::transaction::TxIn" if !is_ref => Some ( "" ) ,
1125
1136
"bitcoin::TxOut" |"bitcoin::blockdata::transaction::TxOut" if !is_ref => Some ( "" ) ,
1126
1137
"bitcoin::network::constants::Network" => Some ( "" ) ,
1127
1138
"bitcoin::util::address::WitnessVersion" => Some ( "" ) ,
1128
1139
"bitcoin::blockdata::block::BlockHeader" => Some ( "&::bitcoin::consensus::encode::deserialize(unsafe { &*" ) ,
1129
1140
"bitcoin::blockdata::block::Block" if is_ref => Some ( "&::bitcoin::consensus::encode::deserialize(" ) ,
1130
1141
1142
+ "bitcoin::PackedLockTime" |"bitcoin::blockdata::locktime::PackedLockTime" => Some ( "::bitcoin::PackedLockTime(" ) ,
1143
+
1144
+ "bitcoin::psbt::PartiallySignedTransaction" if !is_ref => Some ( "::bitcoin::consensus::encode::deserialize(" ) ,
1145
+
1131
1146
"bitcoin::PubkeyHash" |"bitcoin::hash_types::PubkeyHash" if !is_ref =>
1132
1147
Some ( "bitcoin::hash_types::PubkeyHash::from_hash(bitcoin::hashes::Hash::from_inner(" ) ,
1133
1148
"bitcoin::PubkeyHash" |"bitcoin::hash_types::PubkeyHash" if is_ref =>
@@ -1155,8 +1170,10 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1155
1170
"lightning::ln::channelmanager::PaymentId" if is_ref=> Some ( "&::lightning::ln::channelmanager::PaymentId( unsafe { *" ) ,
1156
1171
"lightning::ln::channelmanager::InterceptId" if !is_ref => Some ( "::lightning::ln::channelmanager::InterceptId(" ) ,
1157
1172
"lightning::ln::channelmanager::InterceptId" if is_ref=> Some ( "&::lightning::ln::channelmanager::InterceptId( unsafe { *" ) ,
1158
- "lightning::chain::keysinterface::KeyMaterial" if !is_ref => Some ( "::lightning::chain::keysinterface::KeyMaterial(" ) ,
1159
- "lightning::chain::keysinterface::KeyMaterial" if is_ref=> Some ( "&::lightning::chain::keysinterface::KeyMaterial( unsafe { *" ) ,
1173
+ "lightning::sign::KeyMaterial" if !is_ref => Some ( "::lightning::sign::KeyMaterial(" ) ,
1174
+ "lightning::sign::KeyMaterial" if is_ref=> Some ( "&::lightning::sign::KeyMaterial( unsafe { *" ) ,
1175
+ "lightning::chain::ClaimId" if !is_ref => Some ( "::lightning::chain::ClaimId(" ) ,
1176
+ "lightning::chain::ClaimId" if is_ref=> Some ( "&::lightning::chain::ClaimId( unsafe { *" ) ,
1160
1177
1161
1178
// List of traits we map (possibly during processing of other files):
1162
1179
"lightning::io::Read" => Some ( "&mut " ) ,
@@ -1210,20 +1227,26 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1210
1227
"bitcoin::secp256k1::ecdsa::RecoverableSignature" => Some ( ".into_rust()" ) ,
1211
1228
"bitcoin::secp256k1::SecretKey" if !is_ref => Some ( ".into_rust()" ) ,
1212
1229
"bitcoin::secp256k1::SecretKey" if is_ref => Some ( "}[..]).unwrap()" ) ,
1230
+ "bitcoin::secp256k1::KeyPair" if !is_ref => Some ( ".into_rust())" ) ,
1213
1231
"bitcoin::secp256k1::Scalar" => Some ( ".into_rust()" ) ,
1214
1232
"bitcoin::secp256k1::ecdh::SharedSecret" if !is_ref => Some ( ".data)" ) ,
1215
1233
1216
- "bitcoin::blockdata::script::Script" if is_ref => Some ( ".to_slice()))" ) ,
1217
- "bitcoin::blockdata::script::Script" if !is_ref => Some ( ".into_rust())" ) ,
1234
+ "bitcoin::blockdata::script::Script" | "bitcoin::Script" if is_ref => Some ( ".to_slice()))" ) ,
1235
+ "bitcoin::blockdata::script::Script" | "bitcoin::Script" if !is_ref => Some ( ".into_rust())" ) ,
1218
1236
"bitcoin::blockdata::transaction::Transaction" |"bitcoin::Transaction" => Some ( ".into_bitcoin()" ) ,
1219
1237
"bitcoin::Witness" => Some ( ".into_bitcoin()" ) ,
1220
1238
"bitcoin::OutPoint" |"bitcoin::blockdata::transaction::OutPoint" => Some ( ")" ) ,
1239
+ "bitcoin::TxIn" |"bitcoin::blockdata::transaction::TxIn" if !is_ref => Some ( ".into_rust()" ) ,
1221
1240
"bitcoin::TxOut" |"bitcoin::blockdata::transaction::TxOut" if !is_ref => Some ( ".into_rust()" ) ,
1222
1241
"bitcoin::network::constants::Network" => Some ( ".into_bitcoin()" ) ,
1223
1242
"bitcoin::util::address::WitnessVersion" => Some ( ".into()" ) ,
1224
1243
"bitcoin::blockdata::block::BlockHeader" => Some ( " }).unwrap()" ) ,
1225
1244
"bitcoin::blockdata::block::Block" => Some ( ".to_slice()).unwrap()" ) ,
1226
1245
1246
+ "bitcoin::PackedLockTime" |"bitcoin::blockdata::locktime::PackedLockTime" => Some ( ")" ) ,
1247
+
1248
+ "bitcoin::psbt::PartiallySignedTransaction" if !is_ref => Some ( ".as_slice()).expect(\" Invalid PSBT format\" )" ) ,
1249
+
1227
1250
"bitcoin::PubkeyHash" |"bitcoin::hash_types::PubkeyHash" |
1228
1251
"bitcoin::hash_types::WPubkeyHash" |"bitcoin::hash_types::WScriptHash" |
1229
1252
"bitcoin::ScriptHash" |"bitcoin::hash_types::ScriptHash"
@@ -1240,11 +1263,11 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1240
1263
"bitcoin::blockdata::constants::ChainHash" if !is_ref => Some ( ".data[..])" ) ,
1241
1264
"lightning::ln::PaymentHash" |"lightning::ln::PaymentPreimage" |"lightning::ln::PaymentSecret"
1242
1265
|"lightning::ln::channelmanager::PaymentId" |"lightning::ln::channelmanager::InterceptId"
1243
- |"lightning::chain::keysinterface::KeyMaterial "
1266
+ |"lightning::sign::KeyMaterial" | "lightning::chain::ClaimId "
1244
1267
if !is_ref => Some ( ".data)" ) ,
1245
1268
"lightning::ln::PaymentHash" |"lightning::ln::PaymentPreimage" |"lightning::ln::PaymentSecret"
1246
1269
|"lightning::ln::channelmanager::PaymentId" |"lightning::ln::channelmanager::InterceptId"
1247
- |"lightning::chain::keysinterface::KeyMaterial "
1270
+ |"lightning::sign::KeyMaterial" | "lightning::chain::ClaimId "
1248
1271
if is_ref => Some ( " })" ) ,
1249
1272
1250
1273
// List of traits we map (possibly during processing of other files):
@@ -1319,22 +1342,30 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1319
1342
"bitcoin::secp256k1::ecdsa::RecoverableSignature" => Some ( "crate::c_types::RecoverableSignature::from_rust(&" ) ,
1320
1343
"bitcoin::secp256k1::SecretKey" if is_ref => Some ( "" ) ,
1321
1344
"bitcoin::secp256k1::SecretKey" if !is_ref => Some ( "crate::c_types::SecretKey::from_rust(" ) ,
1345
+ "bitcoin::secp256k1::KeyPair" if !is_ref => Some ( "crate::c_types::SecretKey::from_rust(" ) ,
1322
1346
"bitcoin::secp256k1::Scalar" if !is_ref => Some ( "crate::c_types::BigEndianScalar::from_rust(&" ) ,
1323
1347
"bitcoin::secp256k1::ecdh::SharedSecret" if !is_ref => Some ( "crate::c_types::ThirtyTwoBytes { data: " ) ,
1324
1348
1325
- "bitcoin::blockdata::script::Script" if is_ref => Some ( "crate::c_types::u8slice::from_slice(&" ) ,
1326
- "bitcoin::blockdata::script::Script" if !is_ref => Some ( "" ) ,
1349
+ "bitcoin::blockdata::script::Script" | "bitcoin::Script" if is_ref => Some ( "crate::c_types::u8slice::from_slice(&" ) ,
1350
+ "bitcoin::blockdata::script::Script" | "bitcoin::Script" if !is_ref => Some ( "" ) ,
1327
1351
"bitcoin::blockdata::transaction::Transaction" |"bitcoin::Transaction" if is_ref => Some ( "crate::c_types::Transaction::from_bitcoin(" ) ,
1328
1352
"bitcoin::blockdata::transaction::Transaction" |"bitcoin::Transaction" => Some ( "crate::c_types::Transaction::from_bitcoin(&" ) ,
1329
1353
"bitcoin::Witness" if is_ref => Some ( "crate::c_types::Witness::from_bitcoin(" ) ,
1330
1354
"bitcoin::Witness" if !is_ref => Some ( "crate::c_types::Witness::from_bitcoin(&" ) ,
1331
- "bitcoin::OutPoint" |"bitcoin::blockdata::transaction::OutPoint" => Some ( "crate::c_types::bitcoin_to_C_outpoint(" ) ,
1332
- "bitcoin::TxOut" |"bitcoin::blockdata::transaction::TxOut" if !is_ref => Some ( "crate::c_types::TxOut::from_rust(" ) ,
1355
+ "bitcoin::OutPoint" |"bitcoin::blockdata::transaction::OutPoint" if is_ref => Some ( "crate::c_types::bitcoin_to_C_outpoint(" ) ,
1356
+ "bitcoin::OutPoint" |"bitcoin::blockdata::transaction::OutPoint" if !is_ref => Some ( "crate::c_types::bitcoin_to_C_outpoint(&" ) ,
1357
+ "bitcoin::TxIn" |"bitcoin::blockdata::transaction::TxIn" if !is_ref => Some ( "crate::c_types::TxIn::from_rust(&" ) ,
1358
+ "bitcoin::TxOut" |"bitcoin::blockdata::transaction::TxOut" if !is_ref => Some ( "crate::c_types::TxOut::from_rust(&" ) ,
1359
+ "bitcoin::TxOut" |"bitcoin::blockdata::transaction::TxOut" if is_ref => Some ( "crate::c_types::TxOut::from_rust(" ) ,
1333
1360
"bitcoin::network::constants::Network" => Some ( "crate::bitcoin::network::Network::from_bitcoin(" ) ,
1334
1361
"bitcoin::util::address::WitnessVersion" => Some ( "" ) ,
1335
1362
"bitcoin::blockdata::block::BlockHeader" if is_ref => Some ( "&local_" ) ,
1336
1363
"bitcoin::blockdata::block::Block" if is_ref => Some ( "crate::c_types::u8slice::from_slice(&local_" ) ,
1337
1364
1365
+ "bitcoin::PackedLockTime" |"bitcoin::blockdata::locktime::PackedLockTime" => Some ( "" ) ,
1366
+
1367
+ "bitcoin::psbt::PartiallySignedTransaction" if !is_ref => Some ( "::bitcoin::consensus::encode::serialize(&" ) ,
1368
+
1338
1369
"bitcoin::hash_types::Txid" if !is_ref => Some ( "crate::c_types::ThirtyTwoBytes { data: " ) ,
1339
1370
1340
1371
"bitcoin::PubkeyHash" |"bitcoin::hash_types::PubkeyHash" |
@@ -1350,11 +1381,11 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1350
1381
"bitcoin::secp256k1::Message" if !is_ref => Some ( "crate::c_types::ThirtyTwoBytes { data: " ) ,
1351
1382
"lightning::ln::PaymentHash" |"lightning::ln::PaymentPreimage" |"lightning::ln::PaymentSecret"
1352
1383
|"lightning::ln::channelmanager::PaymentId" |"lightning::ln::channelmanager::InterceptId"
1353
- |"lightning::chain::keysinterface::KeyMaterial "
1384
+ |"lightning::sign::KeyMaterial" | "lightning::chain::ClaimId "
1354
1385
if is_ref => Some ( "&" ) ,
1355
1386
"lightning::ln::PaymentHash" |"lightning::ln::PaymentPreimage" |"lightning::ln::PaymentSecret"
1356
1387
|"lightning::ln::channelmanager::PaymentId" |"lightning::ln::channelmanager::InterceptId"
1357
- |"lightning::chain::keysinterface::KeyMaterial "
1388
+ |"lightning::sign::KeyMaterial" | "lightning::chain::ClaimId "
1358
1389
if !is_ref => Some ( "crate::c_types::ThirtyTwoBytes { data: " ) ,
1359
1390
1360
1391
"lightning::io::Read" => Some ( "crate::c_types::u8slice::from_vec(&crate::c_types::reader_to_vec(" ) ,
@@ -1412,20 +1443,26 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1412
1443
"bitcoin::secp256k1::ecdsa::RecoverableSignature" => Some ( ")" ) ,
1413
1444
"bitcoin::secp256k1::SecretKey" if !is_ref => Some ( ")" ) ,
1414
1445
"bitcoin::secp256k1::SecretKey" if is_ref => Some ( ".as_ref()" ) ,
1446
+ "bitcoin::secp256k1::KeyPair" if !is_ref => Some ( ".secret_key())" ) ,
1415
1447
"bitcoin::secp256k1::Scalar" if !is_ref => Some ( ")" ) ,
1416
1448
"bitcoin::secp256k1::ecdh::SharedSecret" if !is_ref => Some ( ".secret_bytes() }" ) ,
1417
1449
1418
- "bitcoin::blockdata::script::Script" if is_ref => Some ( "[..])" ) ,
1419
- "bitcoin::blockdata::script::Script" if !is_ref => Some ( ".into_bytes().into()" ) ,
1450
+ "bitcoin::blockdata::script::Script" | "bitcoin::Script" if is_ref => Some ( "[..])" ) ,
1451
+ "bitcoin::blockdata::script::Script" | "bitcoin::Script" if !is_ref => Some ( ".into_bytes().into()" ) ,
1420
1452
"bitcoin::blockdata::transaction::Transaction" |"bitcoin::Transaction" => Some ( ")" ) ,
1421
1453
"bitcoin::Witness" => Some ( ")" ) ,
1422
1454
"bitcoin::OutPoint" |"bitcoin::blockdata::transaction::OutPoint" => Some ( ")" ) ,
1423
- "bitcoin::TxOut" |"bitcoin::blockdata::transaction::TxOut" if !is_ref => Some ( ")" ) ,
1455
+ "bitcoin::TxIn" |"bitcoin::blockdata::transaction::TxIn" if !is_ref => Some ( ")" ) ,
1456
+ "bitcoin::TxOut" |"bitcoin::blockdata::transaction::TxOut" => Some ( ")" ) ,
1424
1457
"bitcoin::network::constants::Network" => Some ( ")" ) ,
1425
1458
"bitcoin::util::address::WitnessVersion" => Some ( ".into()" ) ,
1426
1459
"bitcoin::blockdata::block::BlockHeader" if is_ref => Some ( "" ) ,
1427
1460
"bitcoin::blockdata::block::Block" if is_ref => Some ( ")" ) ,
1428
1461
1462
+ "bitcoin::PackedLockTime" |"bitcoin::blockdata::locktime::PackedLockTime" => Some ( ".0" ) ,
1463
+
1464
+ "bitcoin::psbt::PartiallySignedTransaction" if !is_ref => Some ( ").into()" ) ,
1465
+
1429
1466
"bitcoin::hash_types::Txid" if !is_ref => Some ( ".into_inner() }" ) ,
1430
1467
1431
1468
"bitcoin::PubkeyHash" |"bitcoin::hash_types::PubkeyHash" |
@@ -1443,11 +1480,11 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1443
1480
"bitcoin::secp256k1::Message" if !is_ref => Some ( ".as_ref().clone() }" ) ,
1444
1481
"lightning::ln::PaymentHash" |"lightning::ln::PaymentPreimage" |"lightning::ln::PaymentSecret"
1445
1482
|"lightning::ln::channelmanager::PaymentId" |"lightning::ln::channelmanager::InterceptId"
1446
- |"lightning::chain::keysinterface::KeyMaterial "
1483
+ |"lightning::sign::KeyMaterial" | "lightning::chain::ClaimId "
1447
1484
if is_ref => Some ( ".0" ) ,
1448
1485
"lightning::ln::PaymentHash" |"lightning::ln::PaymentPreimage" |"lightning::ln::PaymentSecret"
1449
1486
|"lightning::ln::channelmanager::PaymentId" |"lightning::ln::channelmanager::InterceptId"
1450
- |"lightning::chain::keysinterface::KeyMaterial "
1487
+ |"lightning::sign::KeyMaterial" | "lightning::chain::ClaimId "
1451
1488
if !is_ref => Some ( ".0 }" ) ,
1452
1489
1453
1490
"lightning::io::Read" => Some ( "))" ) ,
0 commit comments