Use `eth2spec.utils.hash_function.hash`

This commit is contained in:
Hsiao-Wei Wang 2019-05-30 13:39:42 +08:00
parent c277703423
commit 0424fab024
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
1 changed files with 5 additions and 7 deletions

View File

@ -13,17 +13,15 @@ from tests.contracts.conftest import (
FULL_DEPOSIT_AMOUNT,
MIN_DEPOSIT_AMOUNT,
)
from eth2spec.phase0.spec import (
DepositData,
)
from eth2spec.utils.hash_function import hash
from eth2spec.utils.minimal_ssz import (
SSZType,
hash_tree_root,
)
from eth2spec.phase0.spec import (
DepositData,
)
def hash(data):
return sha256(data).digest()
def compute_merkle_root(leaf_nodes):