Skip to content

How to compile fasthash accelerations

LDarki edited this page Jan 29, 2022 · 9 revisions
# Update your system and python:
sudo apt update && sudo apt upgrade -y && sudo apt install python3 python3-pip -y
# Install rustup for compilation:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs/ | sh
source $HOME/.cargo/env
# Download duino fasthash:
wget https://server.duinocoin.com/fasthash/libducohash.tar.gz
# Unpack it:
tar -xvf libducohash.tar.gz
# Go to the dir:
cd libducohash
# Compile it:
cargo build --release
# Extract the module:
mv target/release/libducohasher.so .
# Confirm it works:
wget https://server.duinocoin.com/fasthash/PC_Miner.py
python3 PC_Miner.py

Note:

If you have the error "no default toolchain configured" try using the following commands:

rustup toolchain uninstall stable
rustup set default-host armv7-unknown-linux-gnueabihf
rustup toolchain install stable --profile minimal
rustup default stable-armv7-unknown-linux-gnueabihf

then try again.

Clone this wiki locally