Get Puzzle and Solution

From mojo_puzzler
Jump to navigation Jump to search
Return to: Chialisp

Example: Pre-farm 18.75M coin's puzzle & solution https://www.chiaexplorer.com/blockchain/coin/0x1fd60c070e821d785b65e10e5135e52d12c8f4d902a506f48bc1c5268b7bb45b

curl --insecure --cert ~/.chia/mainnet/config/ssl/full_node/private_full_node.crt --key ~/.chia/mainnet/config/ssl/full_node/private_full_node.key -d '{        "coin_id": "0x1fd60c070e821d785b65e10e5135e52d12c8f4d902a506f48bc1c5268b7bb45b","height": 229316 }' -H "Content-Type:application/json" -X POST https://localhost:8555/get_puzzle_and_solution

Outputs:

{"coin_solution": {"coin": {"amount": 18375000000000000000, "parent_coin_info": "0xccd5bb71183532bff220ba46c268991a00000000000000000000000000000000", "puzzle_hash": "0xd23da14695a188ae5708dd152263c4db883eb27edeb936178d4d988b8f3ce5fc"}, "puzzle_reveal": "0xff01ffff33ffa01b7ab2079fa635554ad9bd4812c622e46ee3b1875a7813afba127bb0cc9794f9ff887f808e9291e6c00080ffff33ffa06f184a7074c925ef8688ce56941eb8929be320265f824ec7e351356cc745d38aff887f808e9291e6c0008080", "solution": "0x80"}, "success": true}


The Puzzle

cdv clsp disassemble ff01ffff33ffa01b7ab2079fa635554ad9bd4812c622e46ee3b1875a7813afba127bb0cc9794f9ff887f808e9291e6c00080ffff33ffa06f184a7074c925ef8688ce56941eb8929be320265f824ec7e351356cc745d38aff887f808e9291e6c0008080

Outputs:

(q (51 0x1b7ab2079fa635554ad9bd4812c622e46ee3b1875a7813afba127bb0cc9794f9 0x7f808e9291e6c000) (51 0x6f184a7074c925ef8688ce56941eb8929be320265f824ec7e351356cc745d38a 0x7f808e9291e6c000))

The Solution

cdv clsp disassemble 80

Outputs:

()