See Financial Mathematics for Cryptocurrencies for the full book page, supporting material, and erratum.