mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
asdsadsadasdassa
This commit is contained in:
parent
f26b232ff8
commit
3d80514c66
1 changed files with 5 additions and 1 deletions
|
@ -103,11 +103,15 @@ def hash_raw_header(header: str) -> str:
|
|||
return hash_encode(sha256d(bfh(header)))
|
||||
|
||||
def PoWHash(x):
|
||||
x = x.encode('utf-8')
|
||||
util.print_error("11")
|
||||
r = sha512(Hash(x))
|
||||
util.print_error("22")
|
||||
r1 = ripemd160(r[:len(r) / 2])
|
||||
util.print_error("33")
|
||||
r2 = ripemd160(r[len(r) / 2:])
|
||||
util.print_error("44")
|
||||
r3 = Hash(r1 + r2)
|
||||
util.print_error("55")
|
||||
return r3
|
||||
|
||||
blockchains = {} # type: Dict[int, Blockchain]
|
||||
|
|
Loading…
Add table
Reference in a new issue