Trustless off-chain computing on the blockchain