Cryptographers solved a version of this decades ago with a commit-reveal scheme. One party locks in a secret before the other ...