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

Commit 1bde26e

Browse files
authored
Merge pull request #434 from konradkonrad/pysha3_keccak
Adjust to pysha3 breaking changes closes #426 fixes #430
2 parents d18c10f + f2b31f2 commit 1bde26e

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)