A cryptocurrency with block reward based on spectral analysis of past difficulty