A method and a device for carrying out electronic transactions. A sender produces, under his own full control, a transaction message in a smart card (1) and provides the message with his digital signature in the card for subsequent output and transmission.