delete cryptoutils

This commit is contained in:
Victor Shyba 2020-01-03 01:44:41 -03:00 committed by Lex Berezhny
parent c7f391ca44
commit 44f402c64e
6 changed files with 11 additions and 14 deletions
lbry/blob

View file

@ -9,8 +9,9 @@ from io import BytesIO
from cryptography.hazmat.primitives.ciphers import Cipher, modes
from cryptography.hazmat.primitives.ciphers.algorithms import AES
from cryptography.hazmat.primitives.padding import PKCS7
from cryptography.hazmat.backends import default_backend
from lbry.cryptoutils import backend, get_lbry_hash_obj
from lbry.utils import get_lbry_hash_obj
from lbry.error import DownloadCancelledError, InvalidBlobHashError, InvalidDataError
from lbry.blob import MAX_BLOB_SIZE, blobhash_length
@ -21,6 +22,7 @@ log = logging.getLogger(__name__)
_hexmatch = re.compile("^[a-f,0-9]+$")
backend = default_backend()
def is_valid_blobhash(blobhash: str) -> bool: