bitcoin transactions examples
TRANSCRIPT
![Page 1: Bitcoin Transactions Examples](https://reader036.vdocuments.net/reader036/viewer/2022062320/55b57acbbb61ebce788b4760/html5/thumbnails/1.jpg)
Bitcoin Transactions Deconstructed
Presented by: Jeff Flowers
![Page 2: Bitcoin Transactions Examples](https://reader036.vdocuments.net/reader036/viewer/2022062320/55b57acbbb61ebce788b4760/html5/thumbnails/2.jpg)
TransactionsHow is value moved on the network
![Page 3: Bitcoin Transactions Examples](https://reader036.vdocuments.net/reader036/viewer/2022062320/55b57acbbb61ebce788b4760/html5/thumbnails/3.jpg)
Overview
• Transactions
• General Structure
• Standard Types
• Methods of Inquiry
• Detailed Examples
![Page 4: Bitcoin Transactions Examples](https://reader036.vdocuments.net/reader036/viewer/2022062320/55b57acbbb61ebce788b4760/html5/thumbnails/4.jpg)
Transactions
• Movement of value on the network
• These actions are wrapped within a transaction prior to broadcast
• Transactions are in plain text and readable by all
• Broadcasted to all Bitcoin nodes
![Page 5: Bitcoin Transactions Examples](https://reader036.vdocuments.net/reader036/viewer/2022062320/55b57acbbb61ebce788b4760/html5/thumbnails/5.jpg)
StructureThese are data structures, as such conform to well defined rules
![Page 6: Bitcoin Transactions Examples](https://reader036.vdocuments.net/reader036/viewer/2022062320/55b57acbbb61ebce788b4760/html5/thumbnails/6.jpg)
• Inputs are the source of funds being moved, pointers to the transaction hash and sequence number of the UTXO containing moved value
• The output of a transaction is the creation of an unspent transaction output (UTXO)
• UTXO are denominated in Satoshis
• A locking script that encumbers this value requiring specific conditions to be met for the owner to spend
![Page 7: Bitcoin Transactions Examples](https://reader036.vdocuments.net/reader036/viewer/2022062320/55b57acbbb61ebce788b4760/html5/thumbnails/7.jpg)
Transaction Structure Cond.
• A transaction completely depletes the UTXO being used
• Should only a portion be required, change must be considered
• Change is the unused portion of the UTXO being moved
• The difference between the new UTXO and change is taken by the network as a fee
![Page 8: Bitcoin Transactions Examples](https://reader036.vdocuments.net/reader036/viewer/2022062320/55b57acbbb61ebce788b4760/html5/thumbnails/8.jpg)
Standard Transactions
• Pay-to-Public-Key-Hash (P2PKH)
• Pay-to-Public-Key
• Multi-Signature
• Data Output
• Pay-to-Script-Hash (P2SH)
![Page 9: Bitcoin Transactions Examples](https://reader036.vdocuments.net/reader036/viewer/2022062320/55b57acbbb61ebce788b4760/html5/thumbnails/9.jpg)
Standard Transactions
• Pay-to-Public-Key-Hash (P2PKH)
• Pay-to-Public-Key
• Multi-Signature
• Data Output
• Pay-to-Script-Hash (P2SH)
The majority of Bitcoin transactions today are of this general type. These
types of transactions are used to transfer value, typically from one user
to another. They are constructed having the form: scriptSig (or the
unlocking script) first, followed by the scriptPubKey (or locking script).
![Page 10: Bitcoin Transactions Examples](https://reader036.vdocuments.net/reader036/viewer/2022062320/55b57acbbb61ebce788b4760/html5/thumbnails/10.jpg)
Standard Transactions
• Pay-to-Public-Key-Hash (P2PKH)
• Pay-to-Public-Key
• Multi-Signature
• Data Output
• Pay-to-Script-Hash (P2SH)
Another payment transaction. These types of transactions are effectively
outdated with P2PKH being preferred. The public key itself, not its hash, is stored in the locking script. This has
the advantages of being shorter, though less secure.
![Page 11: Bitcoin Transactions Examples](https://reader036.vdocuments.net/reader036/viewer/2022062320/55b57acbbb61ebce788b4760/html5/thumbnails/11.jpg)
Standard Transactions
• Pay-to-Public-Key-Hash (P2PKH)
• Pay-to-Public-Key
• Multi-Signature
• Data Output
• Pay-to-Script-Hash (P2SH)
A M of N schema, where there are N total number of keys and M are
needed to create the signature for a valid transaction. Presently limited to a maximum of 15 listed public keys.
![Page 12: Bitcoin Transactions Examples](https://reader036.vdocuments.net/reader036/viewer/2022062320/55b57acbbb61ebce788b4760/html5/thumbnails/12.jpg)
Standard Transactions
• Pay-to-Public-Key-Hash (P2PKH)
• Pay-to-Public-Key
• Multi-Signature
• Data Output
• Pay-to-Script-Hash (P2SH)
The allure of the Block Chain, as a single source of shared truth
embodied by a immutable database opens up many possibilities. Notary
services and beyond. As such, developers have wanted to take full
advantage of this instrument. OP_RETURN allows for 40 bytes of
data to be stored in the block chain.
![Page 13: Bitcoin Transactions Examples](https://reader036.vdocuments.net/reader036/viewer/2022062320/55b57acbbb61ebce788b4760/html5/thumbnails/13.jpg)
Standard Transactions
• Pay-to-Public-Key-Hash (P2PKH)
• Pay-to-Public-Key
• Multi-Signature
• Data Output
• Pay-to-Script-Hash (P2SH)
Payment to P2SH goes instead to a potentially complex locking script but rather to the hash of the script. This greatly shortens the overall size of the transaction. A future spend of
this UTXO requires the script whose hash matches.
![Page 14: Bitcoin Transactions Examples](https://reader036.vdocuments.net/reader036/viewer/2022062320/55b57acbbb61ebce788b4760/html5/thumbnails/14.jpg)
My Method of Inquiry After building my transaction, I had a serial hex mess -
But what did all of this stuff mean?
![Page 15: Bitcoin Transactions Examples](https://reader036.vdocuments.net/reader036/viewer/2022062320/55b57acbbb61ebce788b4760/html5/thumbnails/15.jpg)
![Page 16: Bitcoin Transactions Examples](https://reader036.vdocuments.net/reader036/viewer/2022062320/55b57acbbb61ebce788b4760/html5/thumbnails/16.jpg)
![Page 17: Bitcoin Transactions Examples](https://reader036.vdocuments.net/reader036/viewer/2022062320/55b57acbbb61ebce788b4760/html5/thumbnails/17.jpg)
Resources• Builder (Bitcore): http://bit.ly/1ORgoeF
• Explorer: https://chain.so/
• Hex Converter: http://www.rapidtables.com/convert/number/hex-to-ascii.htm
• Decoder: https://blockchain.info/decode-tx
• Broadcaster: https://live.blockcypher.com/bcy/pushtx/
• Blog: http://www.siliconian.com/blog