lbry-sdk/lbry/lbrynet/blob/__init__.py

7 lines
193 B
Python
Raw Normal View History

2019-01-22 18:47:46 +01:00
from lbrynet.cryptoutils import get_lbry_hash_obj
MAX_BLOB_SIZE = 2 * 2 ** 20
# digest_size is in bytes, and blob hashes are hex encoded
blobhash_length = get_lbry_hash_obj().digest_size * 2