The cryptography used in the Bitcoin is called “Public Key Cryptography”, also known as asymmetric cryptography. Public key cryptography uses separate keys for encryption or decryption (public key and private key) instead of using a single key. In the process, it uses a combination of the public key and the user’s private key to encrypt the information, while for decryption it uses the recipient’s private key and the sender’s public key. It is impossible to understand what a public key is based on a public key. Therefore, the user can send his public key to anyone, without worrying that people have access to his private key.
In best bitcoin wallet, public key cryptography creates a digital signature, ensuring the integrity of the data shown, combining the user’s private key with the data you want to sign using a mathematical algorithm.
Bitcoins use signatures to sign transactions. Signatures are used to demonstrate that a specific user is the owner of the entry corresponding to a specific hash.
Since the actual data itself is part of the digital signature, editing even the smallest aspect of the data changes the entire signature, making it false and obsolete. The use of digital signatures in Bitcoin technology can guarantee that any information registered in it is reliable, accurate and intact. Digital signatures ensure the immutability of the data recorded in the Bitcoin.
Use of hashes
Cryptographic hash is a method to convert large amounts of data into short numbers that are difficult to simulate. The hashes are mainly used together with digital signatures. hashes are unidirectional cryptographic functions that accept any type of input (string, files, etc.), process the input and provide a fixed-sized output string called hash.