forked from LBRYCommunity/lbry-sdk
remove unused claim_id_hash
This commit is contained in:
parent
071ab32ab7
commit
3ad6808d87
1 changed files with 1 additions and 8 deletions
|
@ -153,12 +153,5 @@ class LBRYBlockProcessor(BlockProcessor):
|
|||
certificate = Claim.from_bytes(cert_claim.value)
|
||||
claim_dict.validate_signature(address, certificate)
|
||||
return cert_id
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
def claim_id_hash(txid, n):
|
||||
# TODO: This should be in lbryschema
|
||||
packed = txid + struct.pack('>I', n)
|
||||
md = hashlib.new('ripemd160')
|
||||
md.update(hashlib.sha256(packed).digest())
|
||||
return md.digest()
|
||||
|
|
Loading…
Add table
Reference in a new issue