This tool is an educational source to learn more about Bitcoin's SIGHASH_SINGLE
bug.
You can read the whole post here
This tool is intended to scan the blockchain for addresses vulnerable for the SIGHASH_SINGLE
bug.
To use this tool, you'll first have to run your own node of Bitcoin. If you already have one, move to the next step. Otherwise, follow the instruction from Bitcoin core's website. Notice it might take a while to synchronize your node. In the end of the process your Bitcoin node should be up and running.
Use cargo build --release
to build the program.
Nest, use cargo run --release -- --help
to list all options available.
Currently three options are available:
--address
- To specify the address of your bitcoin node, typically it listens to RPC commands onhttp://127.0.0.1:8332
.--bitcoin-dir
- This is used to extract the credentials needed to access your bitcoin node.--log-file
- If specified the output will be written to the given log file, otherwise will be written tostderr
.
DISCLAIMER: I haven't tested this on anything but Linux, so feel free to open issues.