mirror of
https://github.com/LBRYFoundation/hub.git
synced 2025-08-23 17:37:23 +00:00
13 lines
218 B
Python
13 lines
218 B
Python
from binascii import hexlify
|
|
|
|
|
|
def claim_id(claim_hash):
|
|
return hexlify(claim_hash[::-1]).decode()
|
|
|
|
|
|
class BaseError(Exception):
|
|
pass
|
|
|
|
|
|
class ChainError(Exception):
|
|
"""Raised on error processing blocks."""
|