Ethereum & Smart Contract
Ethereum គឺជាបណ្ដាញបច្ចេកវិទ្យា Blockchain ដ៏មានឥទ្ធិពល ដែលអនុញ្ញាតឱ្យមានការបង្កើត Smart Contracts (កិច្ចសន្យាឆ្លាតវៃ) និងកម្មវិធីវិមជ្ឈការ (dApps)។ នៅក្នុងមេរៀននេះ អ្នកនឹងបានសិក្សាពីមូលដ្ឋានគ្រឹះនៃ Ethereum របៀបដែល Smart Contracts ដំណើរការ និងហេតុអ្វីបានជាបច្ចេកវិទ្យានេះកំពុងធ្វើបដិវត្តន៍ក្នុងវិស័យហិរញ្ញវត្ថុ និងឧស្សាហកម្មផ្សេងៗទៀតជុំវិញពិភពលោក។
Ethereum is a blockchain technology platform that enables the creation of Smart Contracts and decentralized applications (dApps). In this lesson, you will learn the fundamentals of Ethereum, how Smart Contracts work, and why they are transforming industries like finance, healthcare, and beyond.
Ethereum ត្រូវបានបង្កើតឡើងដោយលោក Vitalik Buterin ក្នុងឆ្នាំ 2013 និងបានដាក់ឱ្យដំណើរការជាផ្លូវការនៅឆ្នាំ 2015។ ខុសពី Bitcoin ដែលបង្កើតឡើងដើម្បីដើរតួជារូបិយប័ណ្ណឌីជីថលតែមួយមុខ Ethereum គឺជាវេទិកា (Platform) រចនាឡើងដើម្បីឱ្យអ្នកអភិវឌ្ឍន៍អាចបង្កើតកម្មវិធីរត់ដោយស្វ័យប្រវត្តិ ដោយគ្មានការជ្រៀតជ្រែក ឬកកែប្រែទិន្នន័យពីភាគីណាមួយបានឡើយ។
Ethereum was created by Vitalik Buterin in 2013 and launched in 2015. Unlike Bitcoin, which serves only as digital money, Ethereum is a platform that allows developers to build applications that run automatically and cannot be altered by any single party.
Smart Contract គឺជាកិច្ចសន្យាឌីជីថលដែលត្រូវបានសរសេរឡើងជាកូដកុំព្យូទ័រ។ នៅពេលដែលលក្ខខណ្ឌកំណត់ត្រូវបានបំពេញ កិច្ចសន្យានេះនឹងដំណើរការ និងអនុវត្តដោយស្វ័យប្រវត្តិភ្លាមៗ ដោយមិនបាច់ឆ្លងកាត់អ្នកកណ្ដាលឡើយ។ ឧទាហរណ៍៖ ប្រសិនបើអ្នកទិញទំនិញពីអ្នកលក់ម្នាក់ Smart Contract អាចជួយកាន់កាប់ទឹកប្រាក់របស់អ្នកជាបណ្ដោះអាសន្ន ហើយនឹងបញ្ចេញទឹកប្រាក់នោះទៅឱ្យអ្នកលក់ លុះត្រាតែប្រព័ន្ធបញ្ជាក់ថាអ្នកបានទទួលទំនិញរួចរាល់ពិតប្រាកដ។
A Smart Contract is a digital agreement with conditions written in code. When the conditions are met, the contract executes automatically without needing a middleman. For example, if you buy a product from a seller, a Smart Contract can hold your money and release it to the seller only when you confirm receipt of the product.
ដំណើរការរបស់ Smart Contracts រួមមានជំហានសំខាន់ៗដូចជា៖ ដំបូង អ្នកអភិវឌ្ឍន៍សរសេរលក្ខខណ្ឌកិច្ចសន្យាជាកូដ (ជាទូទៅប្រើភាសា Solidity)។ បន្ទាប់មក កូដនេះត្រូវបានបង្ហោះ (Deploy) ចូលទៅក្នុងបណ្ដាញ Ethereum Blockchain។ នៅពេលមានអ្នកប្រើប្រាស់ធ្វើប្រតិបត្តិការជាមួយវា (ដូចជា ផ្ញើ ETH ទៅកាន់អាសយដ្ឋានកិច្ចសន្យា) ប្រព័ន្ធនឹងផ្ទៀងផ្ទាត់លក្ខខណ្ឌ។ ប្រសិនបើលក្ខខណ្ឌត្រឹមត្រូវ វានឹងដំណើរការដោយស្វ័យប្រវត្តិ ហើយកត់ត្រាលទ្ធផលជារៀងរហូត។
Smart Contracts work through the following steps: Step 1 — A developer writes the contract code (typically using Solidity language). Step 2 — The contract is deployed to the Ethereum blockchain. Step 3 — When a user interacts with the contract (e.g., sends ETH), the contract checks its conditions. Step 4 — If conditions are met, the contract executes automatically, and the result is recorded on the blockchain.
បច្ចុប្បន្ន Smart Contracts ត្រូវបានយកទៅអនុវត្តផ្ទាល់នៅក្នុងវិស័យពិតជាច្រើន។ ខាងក្រោមនេះជាឧទាហរណ៍សំខាន់ៗដែលអ្នកគួរដឹង៖
Smart Contracts are increasingly being used across many industries. Below are some real-world examples that beginners should understand:
| វិស័យIndustry | របៀបប្រើប្រាស់How It Works | ឧទាហរណ៍Example |
|---|---|---|
| ហិរញ្ញវត្ថុវិមជ្ឈការ (DeFi)Finance (DeFi) | ការផ្ដើកម្ចី និងខ្ចីប្រាក់ដោយស្វ័យប្រវត្តិ ដោយមិនបាច់ឆ្លងកាត់ធនាគារAutomated lending and borrowing without banks | Aave, CompoundAave, Compound |
| ធានារ៉ាប់រងInsurance | ការទូទាត់ប្រាក់សំណងដោយស្វ័យប្រវត្តិភ្លាមៗ នៅពេលលក្ខខណ្ឌគ្រោះថ្នាក់កើតឡើងពិតប្រាកដAutomatic claim payouts when predefined events occur | Etherisc (Flight Insurance)Etherisc (Flight Insurance) |
| អចលនទ្រព្យReal Estate | ការផ្ទេរកម្មសិទ្ធិដីធ្លី ឬផ្ទះសម្បែងដោយស្វ័យប្រវត្តិ កាត់បន្ថយការងាររដ្ឋបាលស្មុគស្មាញAutomatic property transfer, reducing paperwork | PropyPropy |
| ខ្សែសង្វាក់ផ្គត់ផ្គង់Supply Chain | តាមដានប្រភពដើម និងចលនារបស់ផលិតផលចាប់ពីចម្ការរហូតដល់ដៃអ្នកប្រើប្រាស់Track products from manufacturer to consumer | Walmart Food TraceabilityWalmart Food Traceability |
| សុខាភិបាលHealthcare | រក្សាទុក និងចែករំលែកប្រវត្តិវេជ្ជសាស្ត្ររបស់អ្នកជំងឺដោយសុវត្ថិភាព និងរក្សាការសម្ងាត់ខ្ពស់Protect patient data and enable secure sharing | MedRec (MIT Project)MedRec (MIT Project) |
| ការបោះឆ្នោតVoting | ប្រظمةបោះឆ្នោតឌីជីថលដែលមានតម្លាភាព មិនអាចលួចបន្លំ ឬកែប្រែសន្លឹកឆ្នោតបានTamper-proof and transparent digital voting | VoatzVoatz |
ដូចគ្នាទៅនឹងឧបករណ៍ហិរញ្ញវត្ថុដទៃទៀតដែរ ទាំង Ethereum និង Smart Contracts សុទ្ធតែមានទាំងគុណសម្បត្តិ និងហានិភ័យទន្ទឹមគ្នា។ ការយល់ដឹងពីចំណុចទាំងពីរនេះមានសារៈសំខាន់ណាស់សម្រាប់អ្នកចាប់ផ្ដើមដំបូង៖
Like all financial tools, Ethereum and Smart Contracts have both benefits and risks. Understanding both is crucial for beginners.
ប្រសិនបើអ្នកចង់ចាប់ផ្ដើមប្រើ Ethereum និង Smart Contracts សូមអនុវត្តតាមជំហានមូលដ្ឋានខាងក្រោម៖
If you want to start using Ethereum and Smart Contracts, follow these steps:
Ethereum កំពុងតែបន្តធ្វើទំនើបកម្មខ្លួនជានិច្ច។ ការធ្វើបច្ចុប្បន្នភាពធំៗនាពេលកន្លងមក បានផ្លាស់ប្ដូរប្រព័ន្ធពី Proof of Work (PoW) ទៅជា Proof of Stake (PoS) ដែលជួយកាត់បន្ថយការប្រើប្រាស់ថាមពល និងបង្កើនប្រសិទ្ធភាពបណ្ដាញ។ នៅថ្ងៃអនាគត Ethereum ត្រូវបានគេរំពឹងថានឹងក្លាយជាគ្រឹះស្ថានដ៏សំខាន់នៃសេដ្ឋកិច្ចឌីជីថលសកល។
Ethereum continues to evolve. Major upgrades like Ethereum 2.0 changed from Proof of Work (PoW) to Proof of Stake (PoS), making the system more efficient and using less energy. In the future, Ethereum may become the foundation of the global digital economy.