This is a demo of a CTV-based Spacechain.
To run it you need
- CTV Signet: https://github.com/jeremyrubin/bitcoin/tree/checktemplateverify-signet-23.0-alpha
git clone git@github.com:fiatjaf/simple-ctv-spacechain
- Install dependencies (in my case with
virtualenv venv && ./venv/bin/pip install -r requirements.txt
) and runmain.py
Run main.py
(in my case ./venv/bin/python main.py
) and you'll be prompted send coins to an address. You can get coins at https://faucet.ctvsignet.com/.
Then the demo will progressively generate transactions that spend from each other with CTV + an input from your wallet in which you also specify a block hash for the hypothetical spacechain.
(We don't have the actual spacechain part here, just the blind merged mining part.)
You can stop the program flow and continue later if you want.
Please stop at each step to inspect the transactions that were generated and see how they fit beautifully with each other.
If you have questions or you just love spacechains, please go to https://t.me/spacechains!
Here's a recorded demo of a spacechain being mined until the end:
This is the last transaction of the spacechain mined in the demo above: you can inspect the other ones from here: https://explorer.ctvsignet.com/tx/77dd64329d27f5d36808a2511ea0311a54f8a283d3243ab58ada427e0ce7aeeb