SHA-256 Merkle tree: Difference between revisions
Content added Content deleted
(→{{header|Python}}: Add implementation.) |
|||
Line 143: | Line 143: | ||
block = fin.read(block_size) |
block = fin.read(block_size) |
||
# at the end we have to concatenate across levels |
# at the end we may have to concatenate across levels |
||
while len(stack) > 1: |
while len(stack) > 1: |
||
a = stack[-2] |
a = stack[-2] |