@@ -1165,24 +1165,24 @@ pub mod test {
1165
1165
key_encoding: TransactionPublicKeyEncoding :: Uncompressed ,
1166
1166
nonce: 123 ,
1167
1167
tx_fee: 456 ,
1168
- signature: MessageSignature :: from_raw( & vec! [ 0xff ; 65 ] )
1168
+ signature: MessageSignature :: from_raw( & [ 0xff ; 65 ] )
1169
1169
} ) ,
1170
1170
TransactionSpendingCondition :: Singlesig ( SinglesigSpendingCondition {
1171
1171
signer: Hash160 ( [ 0x11 ; 20 ] ) ,
1172
1172
hash_mode: SinglesigHashMode :: P2PKH ,
1173
1173
key_encoding: TransactionPublicKeyEncoding :: Compressed ,
1174
1174
nonce: 234 ,
1175
1175
tx_fee: 567 ,
1176
- signature: MessageSignature :: from_raw( & vec! [ 0xff ; 65 ] )
1176
+ signature: MessageSignature :: from_raw( & [ 0xff ; 65 ] )
1177
1177
} ) ,
1178
1178
TransactionSpendingCondition :: Multisig ( MultisigSpendingCondition {
1179
1179
signer: Hash160 ( [ 0x11 ; 20 ] ) ,
1180
1180
hash_mode: MultisigHashMode :: P2SH ,
1181
1181
nonce: 345 ,
1182
1182
tx_fee: 678 ,
1183
1183
fields: vec![
1184
- TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Uncompressed , MessageSignature :: from_raw( & vec! [ 0xff ; 65 ] ) ) ,
1185
- TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Uncompressed , MessageSignature :: from_raw( & vec! [ 0xfe ; 65 ] ) ) ,
1184
+ TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Uncompressed , MessageSignature :: from_raw( & [ 0xff ; 65 ] ) ) ,
1185
+ TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Uncompressed , MessageSignature :: from_raw( & [ 0xfe ; 65 ] ) ) ,
1186
1186
TransactionAuthField :: PublicKey ( PubKey :: from_hex( "04ef2340518b5867b23598a9cf74611f8b98064f7d55cdb8c107c67b5efcbc5c771f112f919b00a6c6c5f51f7c63e1762fe9fac9b66ec75a053db7f51f4a52712b" ) . unwrap( ) ) ,
1187
1187
] ,
1188
1188
signatures_required: 2
@@ -1193,8 +1193,8 @@ pub mod test {
1193
1193
nonce: 456 ,
1194
1194
tx_fee: 789 ,
1195
1195
fields: vec![
1196
- TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Compressed , MessageSignature :: from_raw( & vec! [ 0xff ; 65 ] ) ) ,
1197
- TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Compressed , MessageSignature :: from_raw( & vec! [ 0xfe ; 65 ] ) ) ,
1196
+ TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Compressed , MessageSignature :: from_raw( & [ 0xff ; 65 ] ) ) ,
1197
+ TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Compressed , MessageSignature :: from_raw( & [ 0xfe ; 65 ] ) ) ,
1198
1198
TransactionAuthField :: PublicKey ( PubKey :: from_hex( "03ef2340518b5867b23598a9cf74611f8b98064f7d55cdb8c107c67b5efcbc5c77" ) . unwrap( ) )
1199
1199
] ,
1200
1200
signatures_required: 2
@@ -1205,16 +1205,16 @@ pub mod test {
1205
1205
key_encoding: TransactionPublicKeyEncoding :: Compressed ,
1206
1206
nonce: 567 ,
1207
1207
tx_fee: 890 ,
1208
- signature: MessageSignature :: from_raw( & vec! [ 0xfe ; 65 ] ) ,
1208
+ signature: MessageSignature :: from_raw( & [ 0xfe ; 65 ] ) ,
1209
1209
} ) ,
1210
1210
TransactionSpendingCondition :: Multisig ( MultisigSpendingCondition {
1211
1211
signer: Hash160 ( [ 0x11 ; 20 ] ) ,
1212
1212
hash_mode: MultisigHashMode :: P2WSH ,
1213
1213
nonce: 678 ,
1214
1214
tx_fee: 901 ,
1215
1215
fields: vec![
1216
- TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Compressed , MessageSignature :: from_raw( & vec! [ 0xff ; 65 ] ) ) ,
1217
- TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Compressed , MessageSignature :: from_raw( & vec! [ 0xfe ; 65 ] ) ) ,
1216
+ TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Compressed , MessageSignature :: from_raw( & [ 0xff ; 65 ] ) ) ,
1217
+ TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Compressed , MessageSignature :: from_raw( & [ 0xfe ; 65 ] ) ) ,
1218
1218
TransactionAuthField :: PublicKey ( PubKey :: from_hex( "03ef2340518b5867b23598a9cf74611f8b98064f7d55cdb8c107c67b5efcbc5c77" ) . unwrap( ) )
1219
1219
] ,
1220
1220
signatures_required: 2
@@ -1229,8 +1229,8 @@ pub mod test {
1229
1229
nonce: 678 ,
1230
1230
tx_fee: 901 ,
1231
1231
fields: vec![
1232
- TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Compressed , MessageSignature :: from_raw( & vec! [ 0xff ; 65 ] ) ) ,
1233
- TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Compressed , MessageSignature :: from_raw( & vec! [ 0xfe ; 65 ] ) ) ,
1232
+ TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Compressed , MessageSignature :: from_raw( & [ 0xff ; 65 ] ) ) ,
1233
+ TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Compressed , MessageSignature :: from_raw( & [ 0xfe ; 65 ] ) ) ,
1234
1234
TransactionAuthField :: PublicKey ( PubKey :: from_hex( "03ef2340518b5867b23598a9cf74611f8b98064f7d55cdb8c107c67b5efcbc5c77" ) . unwrap( ) )
1235
1235
] ,
1236
1236
signatures_required: 2
@@ -1241,8 +1241,8 @@ pub mod test {
1241
1241
nonce: 345 ,
1242
1242
tx_fee: 678 ,
1243
1243
fields: vec![
1244
- TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Uncompressed , MessageSignature :: from_raw( & vec! [ 0xff ; 65 ] ) ) ,
1245
- TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Uncompressed , MessageSignature :: from_raw( & vec! [ 0xfe ; 65 ] ) ) ,
1244
+ TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Uncompressed , MessageSignature :: from_raw( & [ 0xff ; 65 ] ) ) ,
1245
+ TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Uncompressed , MessageSignature :: from_raw( & [ 0xfe ; 65 ] ) ) ,
1246
1246
TransactionAuthField :: PublicKey ( PubKey :: from_hex( "04ef2340518b5867b23598a9cf74611f8b98064f7d55cdb8c107c67b5efcbc5c771f112f919b00a6c6c5f51f7c63e1762fe9fac9b66ec75a053db7f51f4a52712b" ) . unwrap( ) ) ,
1247
1247
] ,
1248
1248
signatures_required: 2
@@ -1253,8 +1253,8 @@ pub mod test {
1253
1253
nonce: 456 ,
1254
1254
tx_fee: 789 ,
1255
1255
fields: vec![
1256
- TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Compressed , MessageSignature :: from_raw( & vec! [ 0xff ; 65 ] ) ) ,
1257
- TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Compressed , MessageSignature :: from_raw( & vec! [ 0xfe ; 65 ] ) ) ,
1256
+ TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Compressed , MessageSignature :: from_raw( & [ 0xff ; 65 ] ) ) ,
1257
+ TransactionAuthField :: Signature ( TransactionPublicKeyEncoding :: Compressed , MessageSignature :: from_raw( & [ 0xfe ; 65 ] ) ) ,
1258
1258
TransactionAuthField :: PublicKey ( PubKey :: from_hex( "03ef2340518b5867b23598a9cf74611f8b98064f7d55cdb8c107c67b5efcbc5c77" ) . unwrap( ) )
1259
1259
] ,
1260
1260
signatures_required: 2
0 commit comments