To authorize cryptocurrency transactions, private keys are long alphanumeric codes. They function similarly to passwords. With the help of encryption, your wallet generates your private key, which is used to create your public key (the address of your wallet).