mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-11-11 01:28:17 +03:00
11 lines
213 B
Python
11 lines
213 B
Python
import blspy
|
|
|
|
from chia.types.blockchain_format.sized_bytes import bytes32
|
|
|
|
|
|
def std_hash(b) -> bytes32:
|
|
"""
|
|
The standard hash used in many places.
|
|
"""
|
|
return bytes32(blspy.Util.hash256(bytes(b)))
|