Bitcoin Transactions #1
2019.08.06
BITCOIN

BLOCK
Transaction
A Transaction is a transfer of Bitcoin value that is
broadcast to the network and collected into blocks
https://en.bitcoin.it/wiki/Transaction
transaction.h
Transaction
Transaction
Input
.
Output
C D
Spent
Unspent
#3
● Transaction은 Input과 Output으로 구성
● Input은 블록내의 Transaction의 Output과 연결
● Output은 address와 value가 지정
● 아무런 Input도 사용하지 않은 Output(Unspent)
이미 연결해서 사용한 Output(Spent) 존재
● UTXO(Unspent Transaction Output): 미사용 Output
● UTXO Set은 Leveldb로 별도 관리
.
Input
.
Output
A C
Spent
#1
Unspent
.
Input
.
Output
B C
Unspent
#2
Unspent
C의 잔고는?
Verification: ECDSA
Script Evaluation Stack
010000000456919960ac691763688d3d3bcea9ad6ecaf875df5339e148a1fc61c6ed7a069e0100

00006a47304402204585bcdef85e6b1c6af5c2669d4830ff86e42dd205c0e089bc2a821657e951
c002201024a10366077f87d6bce1f7100ad8cfa8a064b39d4e8fe4ea13a7b71aa8180f012102f0
da57e85eec2934a82a585ea337ce2f4998b50ae699dd79f5880e253dafafb7feffffffeb8f51f4
038dc17e6313cf831d4f02281c2a468bde0fafd37f1bf882729e7fd3000000006a473044022078
99531a52d59a6de200179928ca900254a36b8dff8bb75f5f5d71b1cdc26125022008b422690b84
61cb52c3cc30330b23d574351872b7c361e9aae3649071c1a7160121035d5c93d9ac96881f19ba

1f686f15f009ded7c62efe85a872e6a19b43c15a2937feffffff567bf40595119d1bb8a3037c35

6efd56170b64cbcc160fb028fa10704b45d775000000006a47304402204c7c7818424c7f7911da
6cddc59655a70af1cb5eaf17c69dadbfc74ffa0b662f02207599e08bc8023693ad4e9527dc42c3

4210f7a7d1d1ddfc8492b654a11e7620a0012102158b46fbdff65d0172b7989aec8850aa0dae49
abfb84c81ae6e5b251a58ace5cfeffffffd63a5e6c16e620f86f375925b21cabaf736c779f88fd

04dcad51d26690f7f345010000006a47304402200633ea0d3314bea0d95b3cd8dadb2ef79ea833
1ffe1e61f762c0f6daea0fabde022029f23b3e9c30f080446150b23852028751635dcee2be669c
2a1686a4b5edf304012103ffd6f4a67e94aba353a00882e563ff2722eb4cff0ad6006e86ee20df
e7520d55feffffff0251430f00000000001976a914ab0c0b2e98b1ab6dbf67d4750b0a56244948
a87988ac005a6202000000001976a9143c82d7df364eb6c75be8c80df2b3eda8db57397088ac46

430600000000
Transaction
Sample
Version Input Length Previous Output Output Index
Script Length Input Script Language #1
Sequence
Previous Output Output Index Script Length
Input Script Language #2
Sequence Previous Output
Output Index Script Length
Input Script Language #3
Sequence Previous Output
Output Index Script Length
Input Script Language #4
Sequence Output Length Value Script Length
Value
Script Length
Output Script Language #1
Output Script Language #2
LockTime

More Related Content

PDF
2014-06-26 - A guide to undefined behavior in c and c++
PDF
Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018
DOCX
Pic programms FOR 8TH SEM STUDENTS BY LOHITH KUMAR | 11GUEE6018
TXT
Keypad program
PPTX
Seminar on Digital Multiplier(Booth Multiplier) Using VHDL
PDF
Switcheo Network - Advanced NEO Smart Contracts
PDF
PPT Class Blockchain - Validation and CASE.pdf
PDF
비트코인 블록체인에 데이터 히치하이킹
2014-06-26 - A guide to undefined behavior in c and c++
Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018
Pic programms FOR 8TH SEM STUDENTS BY LOHITH KUMAR | 11GUEE6018
Keypad program
Seminar on Digital Multiplier(Booth Multiplier) Using VHDL
Switcheo Network - Advanced NEO Smart Contracts
PPT Class Blockchain - Validation and CASE.pdf
비트코인 블록체인에 데이터 히치하이킹

Similar to 5. transactions - programming bitcoin (20)

PPTX
Presentation topalidis giorgos
PPTX
Presentation_Topalidis_Giorgos
PDF
Blockchain, cryptography and tokens — NYC Bar presentation
PDF
IRJET- Simulation based design and analysis of combined effect of various ...
PDF
Simulation based design and analysis of combined effect of various data secur...
PPTX
“Technical Intro to Blockhain” by Yurijs Pimenovs from Paybis at CryptoCurren...
PDF
Digital System Design Lab Report - VHDL ECE
PPTX
ECE-3567-Lecture-2-Spring-2025 for beginners
PDF
Technical Report Vawtrak v2
PDF
NaPoleonX : introducing the world first blockchained index publisher
PDF
Workshop - Registro de Informações em Blockchain - Bitcoin - Ethereum - Decred
PDF
Q4.11: Using GCC Auto-Vectorizer
PDF
Analog to Digital Converter
PPTX
Blockchain
PDF
Control Flow Analysis
PDF
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
PPT
STLD-Combinational logic design
PDF
Bds lab 4
PPTX
L6_Slides_vhdl coures temporary hair dye for dark hair
Presentation topalidis giorgos
Presentation_Topalidis_Giorgos
Blockchain, cryptography and tokens — NYC Bar presentation
IRJET- Simulation based design and analysis of combined effect of various ...
Simulation based design and analysis of combined effect of various data secur...
“Technical Intro to Blockhain” by Yurijs Pimenovs from Paybis at CryptoCurren...
Digital System Design Lab Report - VHDL ECE
ECE-3567-Lecture-2-Spring-2025 for beginners
Technical Report Vawtrak v2
NaPoleonX : introducing the world first blockchained index publisher
Workshop - Registro de Informações em Blockchain - Bitcoin - Ethereum - Decred
Q4.11: Using GCC Auto-Vectorizer
Analog to Digital Converter
Blockchain
Control Flow Analysis
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
STLD-Combinational logic design
Bds lab 4
L6_Slides_vhdl coures temporary hair dye for dark hair
Ad

More from Harry Oh (17)

PDF
9. blocks - programing bitcoin
PDF
6. script - programming bitcoin
PDF
GIT 101
PDF
비트코인에 기록하다. 포에버잇 소개 및 발전 방향
PDF
블록체인 검색기를 위한 비트코인기반의 메시지기록서비스
PDF
Code Level Bitcoin Consensus
PDF
블록체인 소모임 - 뷰티플체인 소개
PDF
ECCPOW BitcoinEcc Node - 2019.06.21
PDF
Eccpow - bitcoin fork
PDF
Understand docker
PDF
Face Analysis Service
PDF
비트코인 블록체인에 영구불변 메시지 개발 삽질기 - Google Next Extended Seoul 2018
PDF
UN 워크샵 참석기
PDF
사물 인터넷을 위한 AWS FreeRTOS 소개
PDF
Eccpow bitcoin fork
PDF
라즈베리파이와 서버리스 환경을 통한 얼굴 인식 AI 서비스 구현 - AWS Summit Seoul 2017
PDF
AWS를 활용한 얼굴분석 서비스 만들기
9. blocks - programing bitcoin
6. script - programming bitcoin
GIT 101
비트코인에 기록하다. 포에버잇 소개 및 발전 방향
블록체인 검색기를 위한 비트코인기반의 메시지기록서비스
Code Level Bitcoin Consensus
블록체인 소모임 - 뷰티플체인 소개
ECCPOW BitcoinEcc Node - 2019.06.21
Eccpow - bitcoin fork
Understand docker
Face Analysis Service
비트코인 블록체인에 영구불변 메시지 개발 삽질기 - Google Next Extended Seoul 2018
UN 워크샵 참석기
사물 인터넷을 위한 AWS FreeRTOS 소개
Eccpow bitcoin fork
라즈베리파이와 서버리스 환경을 통한 얼굴 인식 AI 서비스 구현 - AWS Summit Seoul 2017
AWS를 활용한 얼굴분석 서비스 만들기
Ad

Recently uploaded (20)

PPTX
Amdahl’s law is explained in the above power point presentations
PDF
Unit1 - AIML Chapter 1 concept and ethics
PPTX
ASME PCC-02 TRAINING -DESKTOP-NLE5HNP.pptx
PDF
Soil Improvement Techniques Note - Rabbi
PPTX
Petroleum Refining & Petrochemicals.pptx
PPTX
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
PDF
MLpara ingenieira CIVIL, meca Y AMBIENTAL
PDF
UEFA_Carbon_Footprint_Calculator_Methology_2.0.pdf
PPTX
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
PDF
Computer System Architecture 3rd Edition-M Morris Mano.pdf
PPTX
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
PPTX
Feature types and data preprocessing steps
PDF
August 2025 - Top 10 Read Articles in Network Security & Its Applications
PPT
Chapter 1 - Introduction to Manufacturing Technology_2.ppt
PPTX
ai_satellite_crop_management_20250815030350.pptx
PDF
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PDF
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
PPTX
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
PDF
Implantable Drug Delivery System_NDDS_BPHARMACY__SEM VII_PCI .pdf
Amdahl’s law is explained in the above power point presentations
Unit1 - AIML Chapter 1 concept and ethics
ASME PCC-02 TRAINING -DESKTOP-NLE5HNP.pptx
Soil Improvement Techniques Note - Rabbi
Petroleum Refining & Petrochemicals.pptx
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
MLpara ingenieira CIVIL, meca Y AMBIENTAL
UEFA_Carbon_Footprint_Calculator_Methology_2.0.pdf
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
Computer System Architecture 3rd Edition-M Morris Mano.pdf
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
Feature types and data preprocessing steps
August 2025 - Top 10 Read Articles in Network Security & Its Applications
Chapter 1 - Introduction to Manufacturing Technology_2.ppt
ai_satellite_crop_management_20250815030350.pptx
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
Implantable Drug Delivery System_NDDS_BPHARMACY__SEM VII_PCI .pdf

5. transactions - programming bitcoin