hi, all, from the chia docs:coin name = sha256(parent_coin + puzzle_hash + amount).
here is my python util, but the result is not right:
import hashlib, struct
parent_coin_info = bytes.fromhex("fdc7526bfc5107e000b4f710c8c5944f11f4e7ce9711c522b6040bc473266313")
puzzle_hash = bytes.fromhex("5198fccb3ca8f14c32a5f05ac50c98209defd2d3ed3ee2a17789a9f6fd7d433b")
amount = 82488031983 # in mojos
payload = parent_coin_info + puzzle_hash + struct.pack("<Q", amount)
coin_name = "0x" + hashlib.sha256(payload).hexdigest()
print(coin_name)
# The output is : 0x1d04cf77cefc246ca0333e04c691b75e427b856f09cf02d3bc53b5c46552b8d5
# But the right result is : 0x7a639649fa2b6b4233cab7bf98b3da01be182afba622eb377011ac0940cd83c8