Teechain: a secure payment network with asynchronous blockchain access