What is Digital Key Cryptography?

Digital keys are nothing more than long strings of numbers (256 bits long for Bitcoin) and come in pairs – a public key and a private key.

  • Public Key: A public key is similar to a bank account number as it serves as your address on a cryptocurrency network. For example, instead of recording that “Alice owns 2 BTCs, the Bitcoin blockchain would record that “ 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2 owns 2 BTCs”

  • Private Key: A private key is similar to a secret PIN code that allows users to access and control their account.

Every public key has only one private key, and – like a key and a lock – they are linked through cryptography. The important thing to note about this link is that it only flows one way. Although one can always access a public key with a private key, it’s mathematically impossible to do the reverse.

It’s Impossible to Decipher a Private Key from a Public Key

This one-way logic forms the basis of cryptocurrency transactions. For example:

  • To Receive Funds: In order to receive funds, a user would share his public key with the sender, who would deposit the money in that address. Because it’s impossible to decrypt a private key from the public key, this is completely safe (and necessary).

  • To Send Funds: In order to send funds, a user would user her private key to “unlock” her public key on the blockchain to authorize the transfer of the money. Again, because it’s mathematically impossible for anyone but the holder of the private key to do this, the blockchain can be sure that this person owns the funds.

In practice, users rarely see either their keys, as they are often stored inside digital wallets and managed by software (i.e. you just click buttons that say “send” and “sign” on a wallet such as Metamask and the application does the rest for you).

Last updated