Skip to content

Commit 2a54ced

Browse files
authored
Merge pull request #74 from ltonetwork/no-pyblake2
Remove dependency on pysha3 and pyblake2.
2 parents 47a3a03 + 69957ce commit 2a54ced

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
---
21
language: python
2+
dist: jammy
33

44
python:
5-
- 3.9.7
5+
- 3.9
66
- 3.8
77

88
branches:

setup.cfg

-2
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ python_requires = >=3.8
2424
install_requires =
2525
requests>=2.24.0, <3
2626
PyNaCl
27-
pyblake2~=1.1.0
2827
base58~=0.2.5
2928
ecdsa~=0.17.0
3029
inflection~=0.5.1
3130
freezegun~=1.1.0
3231
mnemonic~=0.20
3332
eth-utils~=2.0.0
3433
pycryptodome~=3.12.0
35-
pysha3~=1.0.2
3634

3735
[options.packages.find]
3836
where = src

src/lto/crypto.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import base64
22
import hashlib
3-
import pyblake2
43
import base58
54
import inflection
65

@@ -14,7 +13,7 @@ def sha256(s):
1413

1514

1615
def hash_chain(s):
17-
a = pyblake2.blake2b(s, digest_size=32).digest()
16+
a = hashlib.blake2b(s, digest_size=32).digest()
1817
b = hashlib.sha256(a).digest()
1918
return ''.join(map(chr, b))
2019

0 commit comments

Comments
 (0)