Skip to content

Commit

Permalink
Merge pull request #698 from bkchr/patch-1
Browse files Browse the repository at this point in the history
Fixup merkle-value
  • Loading branch information
bhargavbh authored Sep 6, 2023
2 parents 9f6d48a + 8d1794a commit 4b4b74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/chap-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ $$
{H}:{\mathbb{{B}}}\rightarrow{{U}_{{{i}\rightarrow{0}}}^{{{32}}}}{\mathbb{{B}}}_{{32}}
$$
$$
{H}{\left({N}\right)}:{\left\lbrace\begin{matrix}{v}_{{N}}&{\left|{\left|{v}_{{N}}\right|}\right|}<{32}\ \text{ and }\ {N}\ne{R}\\\text{Blake2b}{\left({v}_{{n}}\right)}&{\left|{\left|{v}_{{N}}\right|}\right|}\ge{32}\ \text{ or }\ {N}={R}\end{matrix}\right.}
{H}{\left({N}\right)}:{\left\lbrace\begin{matrix}{v}_{{N}}&{\left|{\left|{v}_{{N}}\right|}\right|}\le{32}\ \text{ and }\ {N}\ne{R}\\\text{Blake2b}{\left({v}_{{n}}\right)}&{\left|{\left|{v}_{{N}}\right|}\right|}>{32}\ \text{ or }\ {N}={R}\end{matrix}\right.}
$$

Where ${v}_{{N}}$ is the node value of ${N}$ ([Definition -def-num-ref-](chap-state#defn-node-value)) and ${R}$ is the root of the trie. The **Merkle hash** of the trie is defined to be ${H}{\left({R}\right)}$.
Expand Down

0 comments on commit 4b4b74e

Please sign in to comment.