lbry.com/content/faq/proof-algorithm.md
Grindelek 04326cae41 Grammar correction of the FAQ
Fixed grammer mistakes.
2018-03-29 14:51:03 +02:00

916 B

title category
What is LBRY's proof algorithm? mining

What is LBRY's proof algorithm?

LBRY uses proof of work the same way that Bitcoin does. The only difference is the hash function. LBRY uses a slightly different algorithm that achieves the same ends but slightly delayed the development of a GPU miner and gave early adopters a chance to mine without specialized hardware.

LBRY's algorithm is

intermediate = sha512(sha256(sha256(data)))  # compute the sha512() of the double-sha256() of the data
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

For comparison, Bitcoin's algorithm is

proof = sha256(sha256(data))