A Bitcoin payment gateway server: a state server for the stateless Straight library