eth2.0-specs/utils/phase0/hash_function.py

8 lines
135 B
Python
Raw Normal View History

2019-03-19 03:39:19 +00:00
# from hashlib import sha256
2019-03-18 18:51:52 +00:00
from eth_utils import keccak
# def hash(x): return sha256(x).digest()
2019-03-19 03:39:19 +00:00
def hash(x):
return keccak(x)