see https://forums.counterparty.co/index.php/topic,188.msg1501.html#msg1501