lbry-sdk/lbry/blob/__init__.py
2020-01-01 15:57:56 -05:00

6 lines
190 B
Python

from lbry.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