The public key is used to create the code-the encryption.
The private key is used to decode or decrypt the code.
The Private Key Is the Key to Your Success,NEVER share private key to anyone.
When you are ready to send/receive tokens, or to make a purchase, you do so by giving the other party your public key. This points to your wallet address and gives them virtual access to your wallet. However for the transaction to go through, it must also be signed digitally by using the private key.