1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-29 19:08:12 +00:00
trezor-firmware/trezorlib/tests/txcache/insight_dash_tx_5579eaa64b2a0233e7d8d037f5a5afc957cedf48f1c4067e9e33ca6df22ab04f.json
Alexander Block d131b70bed Dash: Support spending DIP2 special transaction inputs (#351)
This implements support for spending of TX outputs which are part of a [DIP2](https://github.com/dashpay/dips/blob/master/dip-0002.md) special transaction, especially [DIP4 coinbases](https://github.com/dashpay/dips/blob/master/dip-0004.md#coinbase-special-transaction).

This is for Dash only and thus required the addition of `is_dash` in `tx_api.py`.

Support on the firmware side is not required for this to work as it reuses the logic from Zcash's `extra_data` and `extra_data_len` fields.
2019-01-09 14:43:30 +01:00

1 line
2.2 KiB
JSON

{"txid":"5579eaa64b2a0233e7d8d037f5a5afc957cedf48f1c4067e9e33ca6df22ab04f","version":3,"locktime":21064,"vin":[{"txid":"4f5a33d74e1d2aea6a0d6c374e382a9bc4d5a045dff1969ed62b887558f7a230","vout":0,"sequence":4294967294,"n":0,"scriptSig":{"hex":"473044022003057fa600b72bf970fe56cf8fbaba613ec705563adcb34c4a18eb6a268d722f022070fa9e1f999dacf2b16de9887d5e37374b09fddb7e8856f250de918def31fd0d01210380137151f0cdacdd072ec5fd3b11c68c4509be9d5676d24ca2ba852173c6a899","asm":"3044022003057fa600b72bf970fe56cf8fbaba613ec705563adcb34c4a18eb6a268d722f022070fa9e1f999dacf2b16de9887d5e37374b09fddb7e8856f250de918def31fd0d[ALL] 0380137151f0cdacdd072ec5fd3b11c68c4509be9d5676d24ca2ba852173c6a899"},"addr":"yY8hmtiBVyw74vKmBhdhNxvCfiakuUUBkb","valueSat":1000593,"value":0.01000593,"doubleSpentTxID":null},{"txid":"4f5a33d74e1d2aea6a0d6c374e382a9bc4d5a045dff1969ed62b887558f7a230","vout":1,"sequence":4294967294,"n":1,"scriptSig":{"hex":"483045022100babd26c449eb9718d3906328a392873630df77c5cafd715cfdb880f832f5470c02201a8dce2a0e784696a2bcbd64415e523e8c545773881764e7100354eaddd7337401210219a6894f4d5dd3e78c2215f9feb0d57fcce287bd0f0078ae0d246a58b3e554fb","asm":"3045022100babd26c449eb9718d3906328a392873630df77c5cafd715cfdb880f832f5470c02201a8dce2a0e784696a2bcbd64415e523e8c545773881764e7100354eaddd73374[ALL] 0219a6894f4d5dd3e78c2215f9feb0d57fcce287bd0f0078ae0d246a58b3e554fb"},"addr":"ySCCMgodnW999ehuQt8pe4qivwhfZaduSy","valueSat":1000000000,"value":10,"doubleSpentTxID":null}],"vout":[{"value":"0.01000210","n":0,"scriptPubKey":{"hex":"76a9144f61517912cf3fb9a19a14912bea23792b18bdcc88ac","asm":"OP_DUP OP_HASH160 4f61517912cf3fb9a19a14912bea23792b18bdcc OP_EQUALVERIFY OP_CHECKSIG","addresses":["yTZAp9ZhVcNDVa8ZUiJByTKKeTNHwFpasG"],"type":"pubkeyhash"},"spentTxId":null,"spentIndex":null,"spentHeight":null},{"value":"10.00000000","n":1,"scriptPubKey":{"hex":"76a9141e7754b21a4afe7d229b8ff46e613d1117a6515588ac","asm":"OP_DUP OP_HASH160 1e7754b21a4afe7d229b8ff46e613d1117a65155 OP_EQUALVERIFY OP_CHECKSIG","addresses":["yP6Y5D9bx3ih9RCAgSJNdzbiVtPYXNUE8v"],"type":"pubkeyhash"},"spentTxId":null,"spentIndex":null,"spentHeight":null}],"blockheight":-1,"confirmations":0,"time":1547025147,"valueOut":10.0100021,"size":373,"valueIn":10.01000593,"fees":0.00000383,"txlock":false}