If you force somebody (who's not even the defendent, just a witness in the case) to (cryptographially) sign a message of your own choosing, why not just take the shortcut of forcing the defendant to sign whatever confession you want them to? Much easier, quicker and cheaper than these fancy workarounds.