Implementation of the SHA-256 algorithm as used in BitCoin