An implementation of a lottery on Bitcoin without trusted third party based on the paper: http://eprint.iacr.org/2013/784