An introduction to Bitcoin and cryptocurrency mining pools