lbry-sdk/lbry/blob/__init__.py

7 lines
190 B
Python
Raw Normal View History

2019-06-21 02:55:47 +02:00
from lbry.cryptoutils import get_lbry_hash_obj
2019-01-22 18:47:46 +01:00
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