Skip to content

Commit

Permalink
Update k66.md
Browse files Browse the repository at this point in the history
  • Loading branch information
k66inthesky authored Feb 20, 2025
1 parent 1c41685 commit edc8ead
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions k66.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,4 +344,40 @@ if __name__ == "__main__":
+ 經濟模型不明


### 2025.02.20
總費時: 約30分鐘
+ 拜占庭容錯(多數決、重複確認、忽略惡意節點)
+ 若惡意節點比普通節點來得多呢?
+ PoW -> 變很貴 -> 變難 (ETH1.0)
+ PoS -> 隨機選 (ETH2.0)
+ 多層次或分散式網路
+ PoS全惡意節點怎辦?
+ Slashing
+ 分散代幣持有
+ 社群可Hard Fork
+ Nonce是什麼?
+ 交易的Nonce
+ 防止Replay Attack
+ 確保交易順序
+ 礦工的Nonce
+ PoW
+ 礦工完成驗證並得到獎勵
+ EVM是什麼?
+ 執行智能合約
+ 管理交易&狀態變更
+ 計算Gas費用
+ EVM執行
+ 交易進入網路 -> 交易被打包進區塊 -> EVM解析交易 -> 狀態更新 -> 交易完成&區塊確認
+ EVM Opcode
+ PUSH1, ADD, MSTORE, SSTORE, CALL
+ Gas
+ ADD(3 Gas), MSTORE(3 Gas), SSTORE(20,000), CALL(700 Gas)
+ EVM Client程式語言
+ Geth, Nethermind, Besu, Reth
+ EVM怎麼運作?
+ Bob用MetaMask錢包轉1顆ETH給Alice
+ Bob的交易會傳送給全世界運行EVM軟體的電腦(節點)
+ PoS,Staker會驗證交易是否合法
+ 交易寫入區塊鏈 -> Alice收到1顆ETH,交易完成

<!-- Content_END -->

0 comments on commit edc8ead

Please sign in to comment.