History of Proof of Work in Cryptocurrency: From Spam Filters to Digital Gold