|
iota.lib.cpp
IOTA C++ Library
|
#include <i_pow.hpp>
Public Member Functions | |
| IPow ()=default | |
| virtual | ~IPow ()=default |
| virtual Types::Trytes | operator() (const Types::Trytes &trytes, int minWeightMagnitude, int threads=0)=0 |
Interface for proof of work algorithms.
|
default |
Default ctor.
|
virtualdefault |
Default dtor.
|
pure virtual |
Compute nonce from the given trytes.
| trytes | The trytes to compute nonce from. |
| minWeightMagnitude | The minimum number of zeroes the hash has to end with. |
| threads | The number of thread to run the algorithm to. |
Implemented in IOTA::Crypto::Pow.
1.8.14