LBRY Consensus Algorithm

LBRY uses proof of work as a consensus mechanism, the same way that Bitcoin does.

LBRY has differences in hash function, block targeting, and difficult adjustment.

Hash Mechanism

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

Block Targeting

PR this.

Difficulty Adjustment

PR this.

This website is in beta and under heavy development.
All information should be considered incomplete and possibly incorrect and things may not work as expected.



Please do not share or link this site publicly while this message is here. This website is open source and you can contribute to it on Github.