mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
Create proof-algorithm.md
This commit is contained in:
parent
734554b3cd
commit
c44c216021
1 changed files with 26 additions and 0 deletions
26
content/faq/proof-algorithm.md
Normal file
26
content/faq/proof-algorithm.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
title: What is LBRY's proof algorithm?
|
||||
category: mining
|
||||
---
|
||||
|
||||
## What is LBRY's proof algorithm?
|
||||
|
||||
LBRY uses [proof of work](https://en.bitcoin.it/wiki/Proof_of_work) the same way that Bitcoin does. The
|
||||
only difference is the hash function. LBRY uses a sligthly 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 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
|
||||
proof = sha256(sha256(left + right)) # concatenate the two halves, and double-sha256() it again
|
||||
```
|
||||
|
||||
For comparison, Bitcoin's algorimth is
|
||||
|
||||
```python
|
||||
proof = sha256(sha256(data))
|
||||
```
|
Loading…
Add table
Reference in a new issue