See https://bitcointalk.org/index.php?topic=5327815.msg56701523#msg56701523