difficulty calculation, move from randomx to autolykos2

This commit is contained in:
2026-03-30 15:42:28 +02:00
parent c358115af4
commit b47ff30bc7
18 changed files with 1163 additions and 224 deletions

View File

@@ -1,8 +1,20 @@
# MiniCoin
Basic blockchain currency implementation in C, for educational purposes. Not intended for production use.
Privacy coin made in C. One day hopefully with a purpose beyond "educational" :)
Some notes for me right now:
cmake:
```bash
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-fsanitize=address -fno-omit-frame-pointer" -DCMAKE_CXX_FLAGS="-fsanitize=address -fno-omit-frame-pointer" -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address"
```
```
Build with clang/clang++ (I don't want to deal with the gcc/MSVC shenangans right now)
Use:
```bash
./bin/minicoin_node <-mine>
```
Main Hashing Algorithm: SHA256d (double SHA256) for now.
Proof-of-Work Algorithm: Autolykos2