Skip to content

Commit 5a308cd

Browse files
Add docstring for hash_eth2
Co-Authored-By: ChihChengLiang <[email protected]>
1 parent 2f48b7d commit 5a308cd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

eth/beacon/utils/hash.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@
33

44

55
def hash_eth2(data: bytes) -> Hash32:
6+
"""
7+
Return Keccak-256 hashed result.
8+
Note: it's a placeholder and we aim to migrate to a S[T/N]ARK-friendly hash function in
9+
a future Ethereum 2.0 deployment phase.
10+
"""
611
return Hash32(keccak(data))

0 commit comments

Comments
 (0)