convert from public deal with format to uncooked transaction format

0
33


So I’m making an attempt to full perceive the way to decode transactions. Within the dev docs it discusses a uncooked transaction: https://developer.bitcoin.org/reference/transactions.html
within the paragraph “TxOut: A Transaction Output” there’s an instance. Close to the underside of that instance it decodes the bitcoin script. It exhibits you pushing 20 bytes labeled as the general public key has onto the stack.

cbc20a7664f2f69e5355aa427045bc15e7c6c772

That worth is autogenerated from “createrawtransaction” cli operate which comes from the general public key. It particularly references the instance right here
https://developer.bitcoin.org/examples/transactions.html#simple-raw-transaction
the place it says

NEW_ADDRESS=mz6KvC4aoUeo6wSxtiVQTo7FDwPnkp6URG

how are they going from

mz6KvC4aoUeo6wSxtiVQTo7FDwPnkp6URG

to

cbc20a7664f2f69e5355aa427045bc15e7c6c772

? It does not say anyplace within the documentation. Is that this only a learn the supply code state of affairs? I ought to say I’ve tried plugging the deal with into many various hashing calculators. I by no means get the identical consequence.



Supply hyperlink

Leave a reply