Could be built on ecash.
Way beyond my skill set.
The #cashu protocol is surprisingly simple if you ignore the crytographic maths. Would be happy to chat about it.