Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit f2b31f2

Browse files
committed
Adjust to pysha3 breaking changes
`pysha3` adjusted `sha3_256` to the newer standard. Since we rely on the `keccac` version, we will now explicitely use `keccak_256` from `pysha3>=1.0.1`. See: https://github.com/tiran/pysha3/blob/3b31ed7beaed82d1c5300621ad53b51a0fa3bf18/CHANGES.txt#L4-L11
1 parent 266dd3f commit f2b31f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ethereum/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
sha3_256 = lambda x: keccak.new(digest_bits=256, data=x).digest()
44
except:
55
import sha3 as _sha3
6-
sha3_256 = lambda x: _sha3.sha3_256(x).digest()
6+
sha3_256 = lambda x: _sha3.keccak_256(x).digest()
77
from bitcoin import privtopub
88
import sys
99
import rlp

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
bitcoin
2-
pysha3
2+
pysha3>=1.0.1
33
PyYAML
44
repoze.lru
55
pbkdf2

0 commit comments

Comments
 (0)