From bdb331e0c81d5bbedfe697bfb5b8c28cc483753d Mon Sep 17 00:00:00 2001 From: Alex Grin Date: Wed, 14 Mar 2018 12:57:01 -0400 Subject: [PATCH] Update proof-algorithm.md --- content/faq/proof-algorithm.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/faq/proof-algorithm.md b/content/faq/proof-algorithm.md index e90bed33..674ab5af 100644 --- a/content/faq/proof-algorithm.md +++ b/content/faq/proof-algorithm.md @@ -14,8 +14,8 @@ LBRY's algorimth is ```python intermediate = sha512(sha256(sha256(data))) # compute the sha512() of the double-sha256() of the data -left = ripemd(x[:len(x)/2]) # separately ripemd160 the left half -right = ripemd(x[len(x)/2:]) # and the right half +left = ripemd(intermediate[:len(intermediate)/2]) # separately ripemd160 the left half +right = ripemd(intermediate[len(intermediate)/2:]) # and the right half proof = sha256(sha256(left + right)) # concatenate the two halves, and double-sha256() it again ```