An electronic signature consists of a private key kept secret by the signer and a public key shared for verification. The signing process allows for secure document validation and facilitates transactions such as moving Bitcoin between users. A transaction details inputs, outputs, and signatures, ensuring accuracy and preventing errors through the use of a Bitcoin address.