I implemented version 2 of the payment channels API using OP_CHECKLOCKTIMEVERIFY-style payment channels.