--- tags: Chia, Chia coin --- # Chia Coin: ## :memo: todo list 1. Chia coin structure https://docs.chia.net/docs/04coin-set-model/what-is-a-coin/ ### 1. Chia coin structure ```python= class Coin: parent_coin_info: bytes32 # The coinID of the parent coin. puzzle_hash: bytes32 # The hash of the puzzle that locks this coin. amount: uint64 # The amount of XCH in this coin, in the mojos unit: 1 XCH = 1 trillion mojos. ``` `coinID == sha256(parent_ID + puzzlehash + amount)` `coinID == coin_name` * What's the coinID? * What can coinID do? * What is parent_coin_info? * What is puzzle_hash in Coin meaning? ### 2. Spends The data required to spend a coin is: ``` The coin ID The puzzle (full CLVM source code) The solution to the puzzle ``` * How to spend coins? * Please list spending flow.