Java implementation of chained payment channels