Skip to content

Commit

Permalink
Zpad is already in #543
Browse files Browse the repository at this point in the history
  • Loading branch information
vbuterin committed Feb 3, 2019
1 parent acb432e commit 197fa18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs/simple-serialize.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ Return the hash of the serialization of the value.

#### List/Vectors

First, we define some helpers and then the Merkle tree function. `def zpad(input: bytes, length: int) -> bytes: return input + b'\x00' * (length - len(input))` is a helper that extends the given `bytes` value to the desired `length` by adding zero bytes on the right.
First, we define the Merkle tree function.

```python
# Merkle tree hash of a list of homogenous, non-empty items
Expand Down

0 comments on commit 197fa18

Please sign in to comment.