eth2.0-specs/test_libs/pyspec/eth2spec/utils/hash_function.py

7 lines
132 B
Python

from hashlib import sha256
# from eth_utils import keccak
def hash(x): return sha256(x).digest()
# def hash(x): return keccak(x)