Homework on Public and Private Keys - Questions

Right :slight_smile: but how is it used in crypto? :slight_smile:

1 Like

But how does a wallet use these key pairs? :wink:

1 Like

o transfer wealth? And key to your account basically?

You can sign a transaction thus transferring wealth. You can also have an encrypted account :wink:

1 Like
  1. Describe the concept of public and private key with your own words.
    The private key is a large random number. The private key is generated by entering the private key in a function. From the public key you cannot deduct the private key, comparable with SHA265, but with the private key you can mathematically prove that you are the owner of a public key.
  2. What 2 use-cases can public key cryptography be used for?
    FIrstly: encryption, Secondly: indentification.
1 Like

What do you mean by that? Is the public key derived from private key using SHA256?

2 Likes

I understand it to be derived from the multiplication of 2 huge prime numbers. The private key is created from the prime numbers, the public key is the product of the 2 primes. It is virtually impossible to get from the product back to the primes (public to private) but simple to get from the primers to the product (private to public). Therefore the public key is made public, and can be used by anyone to encrypt a message to the owner, who can then decrypt the message using their private key.

Encryption and digital signing.

2 Likes

Yep right. Thank you for your feedback! :wink:

  1. A private key is the derivative of a public key and is used to sign off on transactions.
  2. Public key cryptography can be used for encryption and for digital signatures
1 Like
  1. Private key is used to generate a public key, it is also used to sign a transaction. The public key is used to identify who you are as people can see your public key.
  2. Public & Private Keys are used for (i) encryption (e.g encrypted messages) and (ii) digital signatures (signing a transaction).
1 Like

The public address can receive funds, and those funds can be spent by verifying the private key you have was where the public address was generated from.

1 Like
  1. Public key is your bank account number or email adderess so to speak and your private key is your password.

  2. Public key cryptography can be used to encrypt data, or as a digital signature in the case of bitcoin and crypto its used as a digital signature.

1 Like

1)a private key is a number that can generate a public key via a one way function , anybody can take data and encrypt it with a public key so only the owner of the private key that generated that specific public key can decrypt the message
2)digital signatures , encryption

1 Like
  1. Describe the concept of public and private key with your own words.

Answer:

A Private key is a key that is generated randomly in a computer.
After that, the private key is created you will also be able to have a public key which are linked together, it is important to note that the public key is generated from the private key and not the other way around.
It also important that the private key remains hidden and safe for security purposes.

By having both the Private Key and the Public key you are able to receive and to send for example an encrypted message,
In a Bitcoin wallet you will be having a Privat Key, Public key and also a Bitcoin Address.

  1. What 2 use-cases can public key cryptography be used for?

Answer:

  • Encryption
  • Digital signature
1 Like
  1. Describe the concept of public and private key with your own words.
    Private key is your personal address basically and the public is generated from the private key to encrypt a message. Public keys can be see in public but there is now way to figure our the private key from the public key.
  2. What 2 use-cases can public key cryptography be used for?
    To encrypt a message and digital signatures
1 Like
  1. Describe the concept of public and private key with your own words.
    Private Key is a random number which is used to generate/derive the public key. The public key is as the name suggest open to the public whereas the private key is only known to the individual who created it. It is impossible to derive the private key from the public key. It is a one way function as in the case of hash functions, where the input cannot be derived from the output.

  2. What 2 use-cases can public key cryptography be used for?
    Encryption:
    public key is used to encrypt the message and can only be decrypted by the corresponding private key

Digital Signature:
the private key is used to sign the message, the receiver can verify with the signature and the corresponding public key whether the public key has been created from private key of the sender.

1 Like
  1. A private key is a secret set of numbers used to generate a public key, digitally sign transactions, and decrypt messages.
    A public key is another set of numbers used to encrypt messages/transactions.

  2. Encryption and Digital Signatures. Encryption to protect messages and signatures to verify the correct person is the sender of a transaction/message as expected.

1 Like

1.Private key is a random number, from which you can generate a public key which can be shared with anyone for decrypting messages signed with the private key.
2. Public key can be used for decrypting messages generated with private key and for verifying private key ownership.

1 Like

1.Describe the concept of public and private key with your own words.

The multiple private keys are extremely large and highly random numbers that any new wallet that is created generates. Each of these randomly generated large numbers which are actually more like a sequence of numbers and letters work as an input to the algorithm to then generate an output. This is a one way system like a valve to pump air into a ball. This output in the case of a wallet is a public key, which can then in turn be used to generate an address of the newly created wallet. You can generate a public key with a private key but you can never find a private key by using a public key.

  1. What 2 use-cases can public key cryptography be used for?

Public key cryptography can be used toward encryption of messages or transactions so only the sender and receiver can see what has been sent. It can also be used to make a digital signature allowing a receiver of any transaction the ability to track exactly who sent the transaction. In this case the public key can be traced to the signature that the private key has created. The public key can also generate an extra layer of security by generating an address to a new wallet that can be used publicly without any fear of anyone ever being able to obtain the private key.

1 Like

1- Public and pvt. keys are random and unique code that help a sender or receiver to safeguard the integrity of a transaction in the form of either via encryption ( not used in crypto/bitcoin) or digital signatures ( used mainly in crypto/bitcoin) along with a bitcoin address. To give more clarity, speaking in relation to crypto and bitcoin trading, if Person A (John) wants to send bitcoin from his wallet to person B ( Janice) , the sender( John) will get a unique pvt. key which embedded with a digital signature which generates a public key ( this generation is irreversible) with a bitcoin address. Janice can verify the signature to see if the bitcoin is actually send by John by comparing the bitcoin address to the public key etc. Hence pvt. key should be always kept safe no matter what. If pvt. keys are compromised, consider the bitcoin stolen or lost .

2- Two use cases are encryption and digital signatures ( used mainly in crypto) to show proof of work in Bitcoin

1 Like