Last active
September 24, 2025 05:37
-
-
Save dome/8f62c2ed1a571e63059ffc498f9fc3bd to your computer and use it in GitHub Desktop.
Revisions
-
dome revised this gist
Sep 24, 2025 . 1 changed file with 40 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,12 +25,46 @@ Superchain คือแนวคิดการปรับปรุงด้า OP Stack ประกอบด้วย 6 ชั้นจากล่างขึ้นบน: <mcreference link="https://www.theblockbeats.info/en/news/44039" index="5">5</mcreference> #### 1. Data Availability Layer (DA Layer) - ชั้นความพร้อมใช้งานของข้อมูล - รับผิดชอบการจัดเก็บและให้บริการข้อมูลธุรกรรมที่จำเป็นสำหรับการตรวจสอบสถานะของ rollup - ทำให้มั่นใจว่าข้อมูลทั้งหมดที่จำเป็นสำหรับการสร้าง blocks สามารถเข้าถึงได้ - สามารถใช้ Ethereum L1 หรือระบบ DA อื่นๆ เช่น Celestia หรือ EigenDA - เป็นชั้นพื้นฐานที่สำคัญสำหรับความปลอดภัยและการกระจายอำนาจ #### 2. Sequencing Layer - ชั้นการจัดลำดับ - กำหนดวิธีการรวบรวมและเรียงลำดับธุรกรรมจากผู้ใช้ - Sequencer รับผิดชอบการสร้างและเผยแพร่ blocks ใหม่ - สามารถกำหนดค่าให้ใช้ sequencer เดี่ยวหรือหลายตัว - รองรับการกระจายอำนาจของ sequencer ในอนาคต - ควบคุมการเรียงลำดับธุรกรรมและป้องกัน MEV (Maximal Extractable Value) #### 3. Derivation Layer - ชั้นการดึงข้อมูล - ทำหน้าที่แปลงข้อมูลดิบจาก L1 ให้เป็นรูปแบบที่ execution layer สามารถประมวลผลได้ - ใช้ Standard Ethereum Engine API และสถานะระบบปัจจุบัน - รับผิดชอบการ derive blocks จากข้อมูลที่เก็บไว้ใน DA layer - ทำให้ validators สามารถสร้าง L2 state ใหม่จากข้อมูล L1 - เป็นสะพานเชื่อมระหว่าง raw data และ processed transactions #### 4. Execution Layer - ชั้นการประมวลผล - รับผิดชอบการประมวลผลธุรกรรมและการเปลี่ยนแปลงสถานะ - ใช้ EVM (Ethereum Virtual Machine) เพื่อความเข้ากันได้กับ Ethereum - จัดการ smart contracts และการเรียกใช้ functions - ประมวลผล state transitions ตาม inputs จาก rollup node - รักษาความเข้ากันได้กับ Ethereum tooling และ applications #### 5. Settlement Layer - ชั้นการชำระ - จัดการการยืนยันและการชำระธุรกรรมขั้นสุดท้าย - รับผิดชอบการส่ง state commitments ไปยัง L1 - จัดการ dispute resolution และ fraud proofs - ทำให้มั่นใจว่าธุรกรรม L2 มีความปลอดภัยเท่ากับ L1 - รองรับการถอนเงินจาก L2 กลับไปยัง L1 #### 6. Governance Layer - ชั้นการกำกับดูแล - จัดการการอัปเกรดและการเปลี่ยนแปลงพารามิเตอร์ของระบบ - ควบคุมการตัดสินใจเกี่ยวกับการพัฒนาและการปรับปรุง protocol - รองรับการกำกับดูแลแบบกระจายอำนาจผ่าน token holders - จัดการ multisig และ timelock mechanisms สำหรับความปลอดภัย - เชื่อมโยงกับ Optimism Collective governance system ### Core Components -
dome created this gist
Sep 24, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,102 @@ # สรุป OP Stack และ Superchain ## ภาพรวม OP Stack OP Stack เป็นชุดซอฟต์แวร์โอเพนซอร์สที่ใช้สำหรับสร้าง Layer 2 blockchain บน Ethereum โดยใช้เทคโนโลยี Optimistic Rollups <mcreference link="https://docs.optimism.io/stack/getting-started" index="4">4</mcreference> OP Stack ถูกพัฒนาและดูแลโดย Optimism Collective เพื่อเป็นสาธารณูปโภคสำหรับระบบนิเวศ Ethereum และ Optimism <mcreference link="https://docs.optimism.io/stack/getting-started" index="4">4</mcreference> ### วิสัยทัศน์ของ Superchain Superchain คือแนวคิดการปรับปรุงด้านการขยายตัวครั้งใหญ่ของ OP Stack หลังจาก Bedrock <mcreference link="https://docs.optimism.io/stack/components" index="1">1</mcreference> โดยเป็นเครือข่ายของ chains ที่แบ่งปันระบบ bridging, การกำกับดูแลแบบกระจายอำนาจ, การอัปเกรด, และชั้นการสื่อสาร ซึ่งทั้งหมดสร้างบน OP Stack <mcreference link="https://docs.optimism.io/stack/components" index="1">1</mcreference> #### ปัญหาของ Blockchain ปัจจุบัน เทคโนโลยี blockchain ในปัจจุบันยังไม่เพียงพอสำหรับการสร้าง decentralized web เนื่องจากข้อจำกัดด้านการขยายตัว <mcreference link="https://docs.optimism.io/stack/components" index="1">1</mcreference> แอปพลิเคชันเว็บส่วนใหญ่ไม่สามารถทำงานบน blockchain ได้เนื่องจากข้อจำกัดด้านประสิทธิภาพ <mcreference link="https://docs.optimism.io/stack/components" index="1">1</mcreference> #### ประโยชน์ของการแก้ปัญหาการขยายตัว หากแก้ปัญหาการขยายตัวได้ จะทำให้: - นักพัฒนาไม่ต้องกังวลเรื่อง backend infrastructure เพราะ chain รับประกันการทำงานที่ถูกต้อง, uptime, และการขยายตัวแนวนอน <mcreference link="https://docs.optimism.io/stack/components" index="1">1</mcreference> - Composability จะเพิ่มขึ้นเกินกว่าความสามารถของ REST APIs แบบดั้งเดิม <mcreference link="https://docs.optimism.io/stack/components" index="1">1</mcreference> - นักพัฒนาไม่ต้องรับผิดชอบค่าใช้จ่าย infrastructure ทั้งหมดสำหรับผู้ใช้ <mcreference link="https://docs.optimism.io/stack/components" index="1">1</mcreference> ## สถาปัตยกรรม OP Stack ### 6 ชั้นหลักของ OP Stack OP Stack ประกอบด้วย 6 ชั้นจากล่างขึ้นบน: <mcreference link="https://www.theblockbeats.info/en/news/44039" index="5">5</mcreference> 1. **Data Availability Layer (DA Layer)** - ชั้นความพร้อมใช้งานของข้อมูล 2. **Sequencing Layer** - ชั้นการจัดลำดับ 3. **Derivation Layer** - ชั้นการดึงข้อมูล 4. **Execution Layer** - ชั้นการประมวลผล 5. **Settlement Layer** - ชั้นการชำระ 6. **Governance Layer** - ชั้นการกำกับดูแล ### Core Components #### 1. op-geth (Execution Node) - เป็น Ethereum execution client ที่ถูกขยายเพื่อจัดการฟังก์ชันเฉพาะของ Layer 2 <mcreference link="https://medium.com/zeeve/understanding-op-stack-superchains-the-most-simple-yet-powerful-framework-to-build-optimistic-d5836006acb8" index="3">3</mcreference> - รับผิดชอบการเปลี่ยนแปลงสถานะของการประมวลผล <mcreference link="https://medium.com/zeeve/understanding-op-stack-superchains-the-most-simple-yet-powerful-framework-to-build-optimistic-d5836006acb8" index="3">3</mcreference> - ทำงานร่วมกับ op-node ผ่าน Engine API <mcreference link="https://docs.optimism.io/operators/chain-operators/architecture" index="1">1</mcreference> #### 2. op-node (Rollup Node) - ประกอบด้วย sequencers และ validators <mcreference link="https://medium.com/zeeve/understanding-op-stack-superchains-the-most-simple-yet-powerful-framework-to-build-optimistic-d5836006acb8" index="3">3</mcreference> - Sequencers รับผิดชอบการรวมธุรกรรมจาก Layer 2 และส่งไปยัง Layer 1 <mcreference link="https://medium.com/zeeve/understanding-op-stack-superchains-the-most-simple-yet-powerful-framework-to-build-optimistic-d5836006acb8" index="3">3</mcreference> - Validators/Verifiers ตรวจสอบความถูกต้องของธุรกรรมที่รวมกัน <mcreference link="https://medium.com/zeeve/understanding-op-stack-superchains-the-most-simple-yet-powerful-framework-to-build-optimistic-d5836006acb8" index="3">3</mcreference> - เป็น stateless และได้รับมุมมองของโลกจาก op-geth <mcreference link="https://docs.optimism.io/operators/chain-operators/architecture" index="1">1</mcreference> #### 3. op-batcher - บริการที่ส่งข้อมูล L2 Sequencer ไปยัง L1 <mcreference link="https://docs.optimism.io/operators/chain-operators/architecture" index="1">1</mcreference> - ลดต้นทุนการเขียนไปยัง L1 โดยส่งเฉพาะข้อมูลที่จำเป็นต่อการสร้าง L2 blocks <mcreference link="https://docs.optimism.io/operators/chain-operators/architecture" index="1">1</mcreference> #### 4. op-proposer - บริการที่ส่ง output roots ไปยัง L1 <mcreference link="https://docs.optimism.io/operators/chain-operators/architecture" index="1">1</mcreference> - เปิดใช้งานการส่งข้อความจาก L2 ไปยัง L1 แบบ trustless <mcreference link="https://docs.optimism.io/operators/chain-operators/architecture" index="1">1</mcreference> #### 5. op-deployer - เครื่องมือที่ทำให้การ deploy OP Stack chains ที่เป็นมาตรฐานง่ายขึ้น <mcreference link="https://docs.optimism.io/operators/chain-operators/architecture" index="1">1</mcreference> - ใช้สำหรับ deploy chains ใหม่ที่ใช้ Superchain wide contracts <mcreference link="https://docs.optimism.io/operators/chain-operators/architecture" index="1">1</mcreference> ### Offchain Components #### op-conductor - ทำหน้าที่เป็น leader-aware RPC proxy สำหรับ op-batcher <mcreference link="https://docs.optimism.io/operators/chain-operators/architecture" index="1">1</mcreference> #### op-challenger - ตรวจสอบความถูกต้องของสถานะ L2 โดยการท้าทายการเปลี่ยนแปลงสถานะที่ไม่ถูกต้อง <mcreference link="https://docs.optimism.io/operators/chain-operators/architecture" index="1">1</mcreference> ## การทำงานของ Horizontal Scalability การขยายตัวแนวนอนของ blockchain ต้องใช้หลาย chains เนื่องจากความต้องการฮาร์ดแวร์ในการ sync chain เพิ่มขึ้นตามปริมาณการคำนวณที่ chain ทำ <mcreference link="https://docs.optimism.io/stack/components" index="1">1</mcreference> ดังนั้นเพื่อให้เกิดการขยายตัวแนวนอน จำเป็นต้องรัน chains แบบขนาน <mcreference link="https://docs.optimism.io/stack/components" index="1">1</mcreference> ### ปัญหาของ Multi-chain แบบดั้งเดิม แนวทางแบบดั้งเดิมของสถาปัตยกรรม multi-chain มีปัญหาพื้นฐาน 2 ประการ: <mcreference link="https://docs.optimism.io/stack/components" index="1">1</mcreference> 1. แต่ละ chain แนะนำโมเดลความปลอดภัยใหม่ ส่งผลให้เกิดความเสี่ยงระบบที่เพิ่มขึ้นเมื่อมีการเพิ่ม chains ใหม่ 2. การสร้าง chains ใหม่มีต้นทุนสูงเพราะต้องการ validator sets และ block producers ใหม่ ## ข้อดีของ OP Stack ### ความเปิดกว้าง (Openness) - OP Stack จะถูกพัฒนาเป็นโครงสร้างพื้นฐานสำหรับ blockchain ที่ modular และขยายได้ <mcreference link="https://www.theblockbeats.info/en/news/44039" index="5">5</mcreference> - การเริ่มต้น Layer 2 จะง่ายเหมือนการ deploy smart contract บน Ethereum <mcreference link="https://www.theblockbeats.info/en/news/44039" index="5">5</mcreference> ### หลักการออกแบบ 1. **ประสิทธิภาพ (Efficiency)** - สามารถสร้างอะไรก็ได้และ deploy ไปยัง blockchain ด้วยการคลิกเพียงครั้งเดียว <mcreference link="https://www.theblockbeats.info/en/news/44039" index="5">5</mcreference> 2. **ความเรียบง่าย (Concise)** - ใช้โค้ดที่นำกลับมาใช้ได้และ development kits ที่มีอยู่เพื่อเพิ่มความปลอดภัยและลดความซับซ้อนในการบำรุงรักษา <mcreference link="https://www.theblockbeats.info/en/news/44039" index="5">5</mcreference> 3. **ความสามารถในการขยาย (Expandable)** - Optimism Collective จะเปิดซอร์สโค้ดหลักของ OP Stack อย่างเต็มที่ <mcreference link="https://www.theblockbeats.info/en/news/44039" index="5">5</mcreference> ## สถานะปัจจุบันและอนาคต ### Bedrock Release Optimism Bedrock เป็น iteration ปัจจุบันของ OP Stack <mcreference link="https://docs.optimism.io/stack/getting-started" index="4">4</mcreference> Bedrock release ให้เครื่องมือสำหรับเปิดตัว Optimistic Rollup blockchain ที่มีคุณภาพระดับ production <mcreference link="https://docs.optimism.io/stack/getting-started" index="4">4</mcreference> ### อนาคตของ OP Stack OP Stack เป็นแนวคิดที่พัฒนาอยู่ตลอดเวลา <mcreference link="https://docs.optimism.io/stack/getting-started" index="4">4</mcreference> เมื่อ Optimism เติบโต OP Stack ก็จะเติบโตตามไปด้วย <mcreference link="https://docs.optimism.io/stack/getting-started" index="4">4</mcreference> ในอนาคต จะง่ายขึ้นในการเสียบและกำหนดค่า modules ต่างๆ <mcreference link="https://docs.optimism.io/stack/getting-started" index="4">4</mcreference> เมื่อ Superchain เริ่มก่อตัว OP Stack สามารถพัฒนาไปพร้อมกัน รวมถึงโครงสร้างพื้นฐานการส่งข้อความที่ช่วยให้ chains ต่างๆ สามารถทำงานร่วมกันได้อย่างราบรื่น <mcreference link="https://docs.optimism.io/stack/getting-started" index="4">4</mcreference> --- *หมายเหตุ: ข้อมูลนี้สรุปจากเอกสารอย่างเป็นทางการของ Optimism และแหล่งข้อมูลที่เกี่ยวข้อง ณ วันที่จัดทำเอกสาร*