mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-17 20:08:12 +00:00
chore(python): removing pyblake2 as a required library
This commit is contained in:
parent
7cc9f13605
commit
57579c5a80
@ -5,5 +5,4 @@ click>=7,<9
|
||||
libusb1>=1.6.4
|
||||
construct>=2.9,!=2.10.55
|
||||
typing_extensions>=3.7.4
|
||||
pyblake2>=0.9.3 ; python_version<'3.6'
|
||||
attrs
|
||||
|
@ -13,7 +13,6 @@ install_requires = [
|
||||
"libusb1>=1.6.4",
|
||||
"construct>=2.9",
|
||||
"typing_extensions>=3.7.4",
|
||||
"pyblake2>=0.9.3 ; python_version<'3.6'",
|
||||
"attrs",
|
||||
]
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
import struct
|
||||
from enum import Enum
|
||||
from hashlib import blake2s
|
||||
from typing import Any, List, Optional
|
||||
|
||||
import click
|
||||
@ -7,12 +8,6 @@ import construct as c
|
||||
|
||||
from .. import cosi, firmware
|
||||
|
||||
try:
|
||||
from hashlib import blake2s
|
||||
except ImportError:
|
||||
from pyblake2 import blake2s
|
||||
|
||||
|
||||
SYM_OK = click.style("\u2714", fg="green")
|
||||
SYM_FAIL = click.style("\u274c", fg="red")
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
import hashlib
|
||||
from enum import Enum
|
||||
from hashlib import blake2s
|
||||
from typing import Callable, List, Tuple
|
||||
|
||||
import construct as c
|
||||
@ -23,12 +24,6 @@ import ecdsa
|
||||
|
||||
from . import cosi, messages, tools
|
||||
|
||||
try:
|
||||
from hashlib import blake2s
|
||||
except ImportError:
|
||||
from pyblake2 import blake2s
|
||||
|
||||
|
||||
V1_SIGNATURE_SLOTS = 3
|
||||
V1_BOOTLOADER_KEYS = [
|
||||
bytes.fromhex(key)
|
||||
|
Loading…
Reference in New Issue
Block a user