2020-02-07 22:55:01 +03:00
|
|
|
import blspy
|
|
|
|
|
2021-04-04 06:55:26 +03:00
|
|
|
from chia.types.blockchain_format.sized_bytes import bytes32
|
2020-02-07 22:55:01 +03:00
|
|
|
|
|
|
|
|
|
|
|
def std_hash(b) -> bytes32:
|
|
|
|
"""
|
|
|
|
The standard hash used in many places.
|
|
|
|
"""
|
|
|
|
return bytes32(blspy.Util.hash256(bytes(b)))
|