Three essays on cryptocurrency