To BigchainDB org member: see how ascribe.io/spool protocol did it. Alternatively, use CC.Threshold conditions?