首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >每个块的确切数据结构是什么?

每个块的确切数据结构是什么?
EN

Ethereum用户
提问于 2016-06-21 19:46:38
回答 2查看 13.6K关注 0票数 9

是否有类似于https://en.bitcoin.it/wiki/Block的描述Ethereum块结构的文档/图表?

我知道我可以在https://github.com/ethereum/pyethereum/blob/develop/ethereum/blocks.py找到实现,但我仍然缺少一些信息,比如bytesize和类似的.

EN

回答 2

Ethereum用户

回答已采纳

发布于 2016-06-21 19:58:01

是的,黄纸(YP)和相关的云母块结构

这里是块的主要部分,YP有所有的大小:

4.3。街区。Ethereum中的块是相关信息片段(称为块头)、H的集合,以及对应于包含的事务、T和一组已知具有与当前块的父块的父块相等的父块头U的信息。

票数 7
EN

Ethereum用户

发布于 2016-09-06 13:30:01

下面是从另一个答案 ->定义中改编而来的一种虚幻现象,该定义来自于黄纸

另见黄纸方程(35)。关于github 这里,Latex格式:

代码语言:javascript
复制
The component types are defined thus:
\begin{equation}
\begin{array}[t]{lclclcl}
H_p \in \mathbb{B}_{32} & \wedge & H_o \in \mathbb{B}_{32} & \wedge & H_c \in \mathbb{B}_{20} & \wedge \\
H_r \in \mathbb{B}_{32} & \wedge & H_t \in \mathbb{B}_{32} & \wedge & H_e \in \mathbb{B}_{32} & \wedge \\
H_b \in \mathbb{B}_{256} & \wedge & H_d \in \mathbb{P} & \wedge & H_i \in \mathbb{P} & \wedge \\
H_l \in \mathbb{P} & \wedge & H_g \in \mathbb{P} & \wedge & H_s \in \mathbb{P}_{256} & \wedge \\
H_x \in \mathbb{B} & \wedge & H_m \in \mathbb{B}_{32} & \wedge & H_n \in \mathbb{B}_{8}
\end{array}
\end{equation}

where
\begin{equation}
\mathbb{B}_n = \{ B: B \in \mathbb{B} \wedge \lVert B \rVert = n \}
\end{equation}
票数 6
EN
页面原文内容由Ethereum提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://ethereum.stackexchange.com/questions/6400

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档