From 197fa188936fb21289e86a7e4c88ff5b61815e93 Mon Sep 17 00:00:00 2001 From: vbuterin Date: Sun, 3 Feb 2019 14:26:07 -0600 Subject: [PATCH] Zpad is already in #543 --- specs/simple-serialize.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/simple-serialize.md b/specs/simple-serialize.md index 1820768b3..6976e9cbe 100644 --- a/specs/simple-serialize.md +++ b/specs/simple-serialize.md @@ -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