mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
Update proof-algorithm.md
This commit is contained in:
parent
c44c216021
commit
bdb331e0c8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue