After reading this What is the format of the coinbase transaction? I was wondering about a few things.
decoderawtransaction of a random Litecoin coinbase transaction:
"coinbase" : "038abd07062f503253482f048725ee5208083865a409000000092f7374726174756d2f",
...
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 975efcba1e058667594dc57146022ec46560a63c OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a914975efcba1e058667594dc57146022ec46560a63c88ac",
..
"addresses" : [
"LZ2L61M8rCoZmK7SemTBqfxuFZv5Uj4peR"
Is the asm field the outgoing address? If yes how is it encoded and what is the hex field for? Same question goes for scriptSig asm field in a normal transaction. It contains the public key and the signature but how is it structured/encoded. Because I have a Tx with to vins from the same address and I don't see the same public key in the asm field.
How do I read the coinbase? Hex2asic gives me "?????/P2SH/??%?R??8e??????/stratum/". Is that all I can do if I don't know how the pool operator has structured the coinbase?
OP_HASH160 975efcba1e058667594dc57146022ec46560a63c
is the RIPEMD hash of the address. Check out step 3. bitcoin.stackexchange.com/questions/5021/…