(self)
| 399 | self.assertEqual(tx.serialize(), raw_tx) |
| 400 | |
| 401 | def test_input_value(self): |
| 402 | tx_hash = 'd1c789a9c60383bf715f3f6ad9d14b91fe55f3deb369fe5d9280cb1a01793f81' |
| 403 | index = 0 |
| 404 | want = 42505594 |
| 405 | tx_in = TxIn(bytes.fromhex(tx_hash), index) |
| 406 | self.assertEqual(tx_in.value(), want) |
| 407 | |
| 408 | def test_input_pubkey(self): |
| 409 | tx_hash = 'd1c789a9c60383bf715f3f6ad9d14b91fe55f3deb369fe5d9280cb1a01793f81' |