lbry-sdk/lbry/blob/__init__.py

7 lines
184 B
Python
Raw Normal View History

2020-01-03 01:44:41 -03:00
from lbry.utils import get_lbry_hash_obj
2019-01-22 12:47:46 -05:00
MAX_BLOB_SIZE = 2 * 2 ** 20
# digest_size is in bytes, and blob hashes are hex encoded
2020-01-03 02:57:36 -03:00
BLOBHASH_LENGTH = get_lbry_hash_obj().digest_size * 2