mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-11 08:58:08 +00:00
d131b70bed
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.
1 line
4.9 KiB
JSON
1 line
4.9 KiB
JSON
{"txid":"acb3b7f259429989fc9c51ae4a5e3e3eab0723dceb21577533ac7c4b4ba4db5d","version":2,"locktime":1001318,"vin":[{"txid":"4b9a071d91023d7500320508e89c39779c93a1e99048e4ecb61be63ce397b3c5","vout":0,"sequence":4294967294,"n":0,"scriptSig":{"hex":"473044022022a6c1006693fd27c8cd959564e1dbc00797a8d10f948991532bfffd8586c4610220178ba12ce68005a1604b1f3f8bbb5f65ffe0ebd8fdeed2f9be83cf18a9cbe0340121033bc90e6d7020b929bcb0f55bb943206b40984cfd9774520e34d135f723df8aa0","asm":"3044022022a6c1006693fd27c8cd959564e1dbc00797a8d10f948991532bfffd8586c4610220178ba12ce68005a1604b1f3f8bbb5f65ffe0ebd8fdeed2f9be83cf18a9cbe034[ALL] 033bc90e6d7020b929bcb0f55bb943206b40984cfd9774520e34d135f723df8aa0"},"addr":"XyEk6AaLNyUkqphr9cVJTbbHYDaWfu6ho5","valueSat":10400000,"value":0.104,"doubleSpentTxID":null},{"txid":"58f2d3d54037d56f53f177c2ea7e138ef9e8a4b314c4d367a960bd868a24077b","vout":1,"sequence":4294967294,"n":1,"scriptSig":{"hex":"483045022100ada2986790ad9e7f7a99af7e73e7f15faa4e426231ecc4e0b34930388d39406602200262f3294ac4fe3c7ed099e7254d125220cc292460446f35e7d32075191f35e90121022df1a4244103993d82f30a86a52115309e5939f5b2911a393e74129f61d9be01","asm":"3045022100ada2986790ad9e7f7a99af7e73e7f15faa4e426231ecc4e0b34930388d39406602200262f3294ac4fe3c7ed099e7254d125220cc292460446f35e7d32075191f35e9[ALL] 022df1a4244103993d82f30a86a52115309e5939f5b2911a393e74129f61d9be01"},"addr":"XkcPECu8DZPoZA8kjPnQnmvKDYRzEsDZ41","valueSat":82815190,"value":0.8281519,"doubleSpentTxID":null},{"txid":"66cb0286f456ad40c51430d71c660b6d12f654b59735faf285c7269151d356a2","vout":0,"sequence":4294967294,"n":2,"scriptSig":{"hex":"47304402206ca91f6d61a38f044300e3932a389c440f306ce66fef18d65ece771dde1c973e022060aa4c1856cb2548be980a125ecf92b086dd618135c9d1db04915843100958a7012102d76128af9fcc10d201638b4760ad86b5cc3cb17b77f9450664c396d040a1c303","asm":"304402206ca91f6d61a38f044300e3932a389c440f306ce66fef18d65ece771dde1c973e022060aa4c1856cb2548be980a125ecf92b086dd618135c9d1db04915843100958a7[ALL] 02d76128af9fcc10d201638b4760ad86b5cc3cb17b77f9450664c396d040a1c303"},"addr":"XoaoQptsjKBut2e6ZZdcgxYUp9rPCfYSeX","valueSat":1042419,"value":0.01042419,"doubleSpentTxID":null},{"txid":"99849be362d20c83023804ad742677abcdc2a34d618990adb4556181a795cf9c","vout":0,"sequence":4294967294,"n":3,"scriptSig":{"hex":"47304402203ec301d5e45a8b009311d34027cd7cd39262170a3a97efda40d49dcc572a8b390220614f4f6dd91164991f9de2485556d6eb4e418476c9b7035439e77e317af1d506012102f494364685fb58ac4bdc616ad74b6750ff1e1e72e23eb6cd1edd06f4011f36b2","asm":"304402203ec301d5e45a8b009311d34027cd7cd39262170a3a97efda40d49dcc572a8b390220614f4f6dd91164991f9de2485556d6eb4e418476c9b7035439e77e317af1d506[ALL] 02f494364685fb58ac4bdc616ad74b6750ff1e1e72e23eb6cd1edd06f4011f36b2"},"addr":"XyYKnt7AdQ9TuwCusdGBzkFKikfvf7RWVu","valueSat":6236995,"value":0.06236995,"doubleSpentTxID":null},{"txid":"b013ae7840111805b349f27129f5270009364fb600a56e9065e54a49c5256ad1","vout":0,"sequence":4294967294,"n":4,"scriptSig":{"hex":"473044022020a57b3a782bf30b31b6a31323a95d425deb255884a85b977d4097532465167002201e31e86d4446bc385a8fcb67848f08691f5bce76eb997518e844cf1c6750957a012102a429822e07f5dde4b8eb28b3049011065a5e219032e9e76c3e3fb4a62aadcbd5","asm":"3044022020a57b3a782bf30b31b6a31323a95d425deb255884a85b977d4097532465167002201e31e86d4446bc385a8fcb67848f08691f5bce76eb997518e844cf1c6750957a[ALL] 02a429822e07f5dde4b8eb28b3049011065a5e219032e9e76c3e3fb4a62aadcbd5"},"addr":"XnFcrPi6HUbzMqR72KpYeULgLEj3jrxLNF","valueSat":12886900,"value":0.128869,"doubleSpentTxID":null},{"txid":"d693eef74821de404b2eb49932854513309a3d16efde6560bc7142ad6fedf84b","vout":0,"sequence":4294967294,"n":5,"scriptSig":{"hex":"483045022100fa35e4e80e3136420abff1bda70553e740458597c553fde544c285b5046d8f2202200a6a5e7f996ae09bc0a225f49455a8c5dc11e094019a2a2eca7cb0e223afcc490121029f66dffb2b325b8923d9c2e742550847f5ef24ad123e572a1e521fecac8de91a","asm":"3045022100fa35e4e80e3136420abff1bda70553e740458597c553fde544c285b5046d8f2202200a6a5e7f996ae09bc0a225f49455a8c5dc11e094019a2a2eca7cb0e223afcc49[ALL] 029f66dffb2b325b8923d9c2e742550847f5ef24ad123e572a1e521fecac8de91a"},"addr":"Xy2k9mNWN3M6oKmTMcs7dbYrGGPq4mLwRs","valueSat":1412086,"value":0.01412086,"doubleSpentTxID":null}],"vout":[{"value":"0.01628810","n":0,"scriptPubKey":{"hex":"76a9148419c3d21f2268e077b9781aaf130325c05c121488ac","asm":"OP_DUP OP_HASH160 8419c3d21f2268e077b9781aaf130325c05c1214 OP_EQUALVERIFY OP_CHECKSIG","addresses":["XnjKtker2SrBU4rAimRN8cFpTEafiy5FdP"],"type":"pubkeyhash"},"spentTxId":null,"spentIndex":null,"spentHeight":null},{"value":"1.13163814","n":1,"scriptPubKey":{"hex":"76a914b00bd37eeb45757fbf15006151f11e6b6bf3d28a88ac","asm":"OP_DUP OP_HASH160 b00bd37eeb45757fbf15006151f11e6b6bf3d28a OP_EQUALVERIFY OP_CHECKSIG","addresses":["XrjgviD44eMTEubYVMuzibm58pho7DkTdG"],"type":"pubkeyhash"},"spentTxId":null,"spentIndex":null,"spentHeight":null}],"blockhash":"0000000000000042a1baa64dbe33203efe95a0104ac50f5afa55862e8db2d8ce","blockheight":1001320,"confirmations":0,"time":1547018299,"valueOut":1.14792624,"size":962,"valueIn":1.1479359,"fees":0.00000966,"txlock":false} |