--- tags: it 鐵人賽 30 天, Web 3, ethereum --- # 從以太坊白皮書理解 web 3 概念 - Day5 ## Ethereum: Message 昨天介紹了 Ethereum 的 Transaction 今天來介紹 Ethereum 中用來傳輸資訊的 Message ## What is Message for ? Message 可以當作是一個在 EVM 傳遞的虛擬物件。 Message 會在 Account 間傳遞。 Message 內包含兩種欄位: 1. Data: 會把串輸資料以二進位表示法存放。 2. Value: 代表要傳輸的 balance 量(以 wei 為單位)。 ![](https://i.imgur.com/uoeQ13P.png) ## Type of Message Message 傳輸的情形有兩種。 1. Transaction 遞交時,由 EOA 傳送 Message 給另一個 Account 2. EVM code 執行時, 可以從 Contract Account 傳送 Message 給另一個 Account ![](https://i.imgur.com/fmX3guF.png) ## Cases of Message 根據不同的 Account 間傳輸可以分為以下四個象限 ![](https://i.imgur.com/NtMzJss.png) ## 文獻參考 [https://takenobu-hs.github.io/downloads/ethereum_evm_illustrated.pdf](https://takenobu-hs.github.io/downloads/ethereum_evm_illustrated.pdf)