By APAICHON PUNOPAS
Blockchain คืออะไร ?
“Blockchain” คือรูปแบบการส่งข้อมูลโดยไม่ผ่านคนกลาง โดยเก็บมากกว่าหนึ่งที่ มีความปลอดภัยสูง และสามารถตรวจสอบได้มากกว่าหนึ่งคนหรือทุกคนใน Chain มีสิทธิช่วยตรวจสอบ
Blockchain คือการให้ทุกคนถือเอกสารชุดเดียวกัน เมื่อมีการแก้ไข ตามหลักแล้วจะไม่สามารถเปลี่ยนแปลงเอกสารชุดเดิมได้ หากต้องการเปลี่ยนจะต้องเป็นการคัดลอกใหม่ แล้วสำเนาชุดใหม่ให้ทุกคนที่มีสิทธิตรวจสอบ ทำการตรวจสอบและประกาศให้ทุกคนที่เกี่ยวข้องทราบ โดยมั่นใจได้ว่าเอกสารเหล่านั้นเชื่อถือได้แน่นอนไม่มีการปลอมแปลง
Story
จุดเริ่มต้นของ Blockchain มาจากความต้องการแก้ปัญหาการส่งข้อมูลไปเก็บในระบบส่วนกลาง ที่ไม่สามารถให้คนทั่วไปเข้าไปตรวจสอบได้ แล้วระบบการจัดเก็บข้อมูลแบบส่วนกลาง คืออะไร มีข้อดี ข้อเสีย อย่างไรบ้าง ทำไมเราถึงอยากเปลี่ยน หรือไม่เชื่อถือมันละ
Centralized system
ข้อดี
ข้อเสีย
Decentralized System
จากข้อเสียเรื่องความโปร่งใส่และไม่สามารถให้คนทั่วไปตรวจสอบได้ง่ายของระบบ Centralized System ดังนั้น จึงเกิดแนวคิดการจัดเก็บข้อมูลแบบ Decentalized System ขึ้น
การจัดเก็บข้อมูลแบบ Decentralized System กระจายการเก็บข้อมูลไปทุก Nodes
Blockchain เหมาะกับไปใช้ในเรื่องอะไร
Data Governance ระบบที่ต้องการให้มีการตรวจสอบซึ่งกันและกัน เพื่อสร้างความน่าเชื่อถือ โดยผลโหวตของผู้ตัดสินจะถือเป็นมติเอกฉันท์ และทุกคนจะถือข้อมูลชุดเดียวกัน
ตัวอย่างงานที่ใช้ใน Blockchain
Bitcoin
สกุลเงินดิจิตอลรูปแบบ ใหม่ที่นำหลักการของ Blockchain มาพัฒนา และได้รับความน่าเชื่อถือ ในเรื่องความปลอดภัย
กระบวนการทำงานของ Bitcoin
Genesis Block
$1,000,000
B100
ส่วนประกอบของ Block
20170909000001
Address - เก็บเลขที่อยู่แต่ละ Block ไม่ซ้ำกัน เป็นเลขที่เปิดเผยได้
#1|David |Buy Coin|$100
Transaction - ข้อมูลรายการความเคลื่อนไหว
Digital Signature - ลายเซ็นอิเล็กทรอนิกส์ ที่ไม่ซ้ำกัน แม้เป็นลายเซ็นต์คนเดียวกัน แต่การเซ็นแต่ละครั้งก็ไม่เหมือนกัน 100%
กระบวนการทำงานของ Bitcoin (ต่อ)
David
Marry
B200
Transfer
แล้วจะเชื่อถือได้อย่างไรว่า ข้อมูลถูกต้อง ในเมื่อ David มีจำนวน Bitcoin อยู่เพียง B100 ?
กระบวนการทำงานของ Bitcoin (ต่อ) Consensus หรือ Miner
David
Marry
B200
Transfer
Bob
I’m a miner.
?
?
?
กระบวนการตรวจสอบของ Miner
David
Marry
B200
Transfer
Bob
I’m a miner.
?
?
?
X
กระบวนการตรวจสอบของ Miner
David
Marry
B100
Transfer
Bob
I’m a miner.
?
?
?
Bob ทำการรวบ transaction ทั้งจาก Marry และ John มาตรวจสอบใน
Ledger ของตัวเอง พบว่ายอดรวมเกิน Bitcoin ที่ David มี จึงทำการปฎิเสธ
X
John
B100
?
X
กระบวนการตรวจสอบของ Miner
David
Marry
B50
Transfer
Bob
I’m a miner.
?
?
?
John
I’m a miner.
กระบวนการตรวจสอบของ Miner
กระบวนการตรวจสอบของ Miner
David
Marry
Bob
I’m a miner.
John
I’m a miner.
I’m found.
กระบวนการตรวจสอบของ Miner
David
Marry
Bob
John
OK
OK
OK
OK
Blockchain ปลอดภัยแค่ไหน ?
เมื่อมีคนพยามขโมย Block หรือแก้ไขข้อมูล
ความสัมพันธ์ระหว่างกล่องจะเปลี่ยนไป ทำให้อยู่ในสถานะ ใช้งานไม่ได้ Hacker จะต้องงมหาคำตอบใหม่ ซึ่งหากมีการเปลี่ยนแปลง transaction เกิดขึ้นใน chain ก็จะเกิดกระบวนตรวจสอบใหม่จาก Miner วนอยู่อย่างนี้ ทำให้โอกาศที่จะแก้ไขข้อมูลโดยที่ไม่มีใครรู้เป็นเรื่องที่ทำได้ยาก
Blockchain เปรียบเสมือนเหมือนอะไรในชีวิตจริง ?
Blockchain เปรียนเสมือนตู้นิรภัยที่ติดสัญญาณกันขโมย
Blockchain ในเชิงเทคนิค
Users / Nodes
Blockchain
Applications (smart contracts)
State machine
Consensus
Blocks
Transactions
Peer to Peer Network
Internet
SMTP
HTTP
FTP
Web Socket
Generic elements of a blockchain.
Users / Nodes
A node in a blockchain network performs various functions depending on the role it takes.
Smart Contracts
These programs run on top of the blockchain and encapsulate the business logic to be executed when certain conditions are met.
State machine
A blockchain can be viewed as a state transition mechanism whereby a state is modified from its initial form to the next and eventually to a final form as a result of a transaction execution and validation process by nodes.
Consensus
Consensus is basically a distributed computing concept that has been used in blockchain in order to provide a means of agreeing to a single version of truth by all peers on the blockchain network.
Blocks
A block is composed of multiple transactions and some other elements such as the previous block hash (hash pointer), timestamp, and nonce
Transactions
A transaction represents a transfer of value from one address to another.
Feature of blockchain
Types of blockchain
Types of Consensus
CAP Theorem
Benefit of Blockchain
Cryptography and Technical Foundations
Smart Contracts
Summary, a smart contract has the following four properties:
Challenges and limitations of blockchain technology
Blockchain-Outside of Currencies
Blockchain platform
Many Resources to learn
https://digitaldefynd.com/best-blockchain-courses-training-and-certifications-online�https://www.udemy.com/topic/blockchain�https://medium.com/@a2lyabhat/top-5-free-online-blockchain-course-to-break-into-the-industry-today-2a96d1592322
https://developer.ibm.com/courses/all/blockchain-essentials
https://www.quora.com/What-are-the-best-online-courses-on-blockchains-and-cryptocurrencies
https://www.skillshare.com/browse/blockchain
Thank you