moved contract back into opentxs, more contract functions