One mechanism that can be used to minimize the compromising of security is by processing the transaction entirely on the smart card 26.
However, is not a viable alternative for processing complex electronic transactions protocols because a smart card 26 is constrained by die size restrictions, as well as power restrictions.