The Transaction MAC (TMAC) feature allows smart cards like MIFARE DESFire EV3 and MIFARE Plus EV2 to generate a message authentication code (MAC) for offline transactions between a reader terminal and the smart card. The TMAC helps establish trust by proving the authenticity and validity of transactions when reported to the backend system. It can detect fraudulent activities like replayed, forged, manipulated, or missing transactions by verifying the MAC covers all transaction details and is generated with a secure TMAC key. Technical details are provided on how to enable and use the TMAC feature for different applications and data blocks on each card.