This document has been deprecated and superseded by https://notes.ethereum.org/@n0ble/rayonism-the-merge-spec
The Communication Protocol between eth2 and eth1 nodes sufficient for implementation of Executable Beacon Chain proposal.
Name | Value |
---|---|
LOGS_BLOOM_SIZE | 256 |
MAX_TRANSACTIONS | 2**32 |
MAX_PAYLOAD_SIZE | 2**32 |
RECENT_BLOCK_ROOTS_SIZE | 256 |
class Transaction(Container):
nonce: uint64
gas_price: uint256
gas: uint64
to: bytes20
value: uint256
v: uint256
r: uint256
s: uint256
input: ByteList[MAX_PAYLOAD_SIZE]
class ExecutableData(Container):
parent_hash: bytes32
block_hash: bytes32
coinbase: bytes20
state_root: bytes32
gas_limit: uint64
gas_used: uint64
receipt_root: bytes32
logs_bloom: ByteVector[LOGS_BLOOM_SIZE]
transactions: [Transaction, MAX_TRANSACTIONS]
# for easier eth1-engine upgradability
# will be removed later on
difficulty: uint64
class BlockHeader:
# = rpc_params.parent_hash / executable_data.parent_hash
parent_hash: bytes32
uncles_hash: bytes32 # = EMPTY_LIST_HASH
coinbase: bytes20 # = exec_data.coinbase
state_root: bytes32 # = exec_data.state_root
txs_root: bytes32 # = exec_data.txs_root
receipts_root: bytes32 # = exec_data.receipts_root
logs_bloom: bytes256 # = exec_data.logs_bloom
difficulty: uint64 # = exec_data.difficulty
timestamp: uint64 # = rpc_params.timestamp
number: uint64 # = exec_data.number
gas_limit: uint64 # = exec_data.gas_limit
gas_used: uint64 # = exec_data.gas_used
mix_hash: bytes32 # = zero bytes
extra_data: bytes32 # = rpc_params.randao_mix
nonce: uint64 # = 0
class Block:
header: BlockHeader
transactions: [Transaction] # = exec_data.transactions
uncles: [] # = empty list
Creates a new executable data on top of given parent.
parent_hash
: Hash
- parent eth1 block hash.randao_mix
: Root
- randao mix.slot
: UInt64
- current slot.timestamp:
UInt64
- timestamp, computed with the formula genesis_time + slot * SECONDS_PER_SLOT
.recent_beacon_block_roots
: SSZVector[Root, RECENT_BLOCK_ROOTS_SIZE]
.executable_data
: ExecutableData
, SSZ encoded.Inserts a block into a chain and returns a result.
randao_mix
: Root
- randao mix.slot
: UInt64
- current slot.timestamp:
UInt64
- timestamp, computed with the formula genesis_time + slot * SECONDS_PER_SLOT
.recent_beacon_block_roots
: SSZVector[Root, RECENT_BLOCK_ROOTS_SIZE]
.executable_data
: ExecutableData
, SSZ encoded.Object
- the result of block processing:result
: Boolean
block_hash
: Hash
- the hash of the head of the application chain.Object
- the result of processing:result
: Boolean
block_hash
: Hash
- the hash of finalized eth1 block.Object
- the result of block processing:result
: Boolean
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing