<p>No.</p>

<p>Your private key can be decoded/reversed to reveal your public key. Public keys can not be reversed to reveal the private key. If you share your private key they have EVERYTHING.</p>

CC BY-SA 3.0
2016-02-03T03:04:58.617Z
2016-02-03T03:04:58.617Z
m1xolyd1an
<p>The <a href="https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm">ECDSA</a> signature algorithm used by Bitcoin doesn't have symmetry between its private and public keys.  If you read about how the algorithm works, they aren't even the same type of mathematical object: a private key is an integer, while a public key is a point on an elliptic curve.  They do not, in your words, "perform the same task."  So you can't do that.  (It's not at all clear why you would want to, in the first place.)</p>

<p>In fact, ECDSA is an algorithm for digital signatures, not encryption; ECDSA can't be used to encrypt or decrypt secret data at all.</p>

<p>The property that "each one can encrypt something the other can decrypt" is a special feature of the  <a href="https://en.wikipedia.org/wiki/RSA_%28cryptosystem%29">RSA</a> algorithm.  In this particular cryptosystem, signing and verifying (and encryption/decryption) use the same process; people sometimes say that signing in RSA consists of "encrypting using the private key". One could interchange the roles of the private and public keys, and the algorithm would still work mathematically.   But this isn't a general feature of all asymmetric cryptosystems.</p>

<p>(Even for RSA, although mathematically you could switch the private and public keys, this would totally blow its security: as typically implemented, the public exponent is an arbitrary integer that doesn't have to be secret, and people usually just use 65537.  But the private exponent is hard to compute without knowing the primes used to generate the key. So if you released what was intended to be the "private" key as your public key, people would have no trouble guessing the other key as well, and then you have no security.)</p>

CC BY-SA 3.0
2016-02-04T22:06:57.020Z
Your answer is correct. I'd like to add that in RSA, mathematically speaking the public key and private key behave the same way, but in practice we tweak them. The public exponent is one of those tweaks. Another tweak is that the private key contains the factorization of *n*, which allows faster arithmetic via the Chinese remainder theorem.
Nayuki
CC BY-SA 3.0
2016-02-03T15:23:54.523Z
2016-02-03T15:23:54.523Z
Nate Eldredge
<p>If private and public keys are performing the same task (although asymmetrically), but I mean each one can encrypt something that only the other one can decrypt, can I create a paper wallet and share my "private key" and just keep my "public key" private?</p>

CC BY-SA 3.0
2016-02-03T04:55:13.337Z
Some public key cryptosystems have this kind of symmetry (RSA does), but it's not a general property of digital signature algorithms.   Signing and verifying are not symmetric at all for ECDSA.
Nate Eldredge
CC BY-SA 3.0
2016-02-03T08:09:41.260Z
@NateEldredge That's short, but it's an answer. Please rather post it as such. :)
Murch
<private-key><public-key>
Why can't we switch private and public keys?
Laurent
# Why can't we switch private and public keys?

(Asked by: username_0 on 2016-02-03)

If private and public keys are performing the same task (although asymmetrically), but I mean each one can encrypt something that only the other one can decrypt, can I create a paper wallet and share my "private key" and just keep my "public key" private?

**Tags:** private-key, public-key

> **Comments:**
> **username_1**: Some public key cryptosystems have this kind of symmetry (RSA does), but it's not a general property of digital signature algorithms.   Signing and verifying are not symmetric at all for ECDSA.  
> **username_2**: @username_1 That's short, but it's an answer. Please rather post it as such. :)  

---

## 2 answers

### Answer by username_1 on 2016-02-03. Score: 8 | Accepted answer

The [ECDSA](https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm) signature algorithm used by Bitcoin doesn't have symmetry between its private and public keys. If you read about how the algorithm works, they aren't even the same type of mathematical object: a private key is an integer, while a public key is a point on an elliptic curve. They do not, in your words, "perform the same task." So you can't do that. (It's not at all clear why you would want to, in the first place.)

In fact, ECDSA is an algorithm for digital signatures, not encryption; ECDSA can't be used to encrypt or decrypt secret data at all.

The property that "each one can encrypt something the other can decrypt" is a special feature of the [RSA](https://en.wikipedia.org/wiki/RSA_%28cryptosystem%29) algorithm. In this particular cryptosystem, signing and verifying (and encryption/decryption) use the same process; people sometimes say that signing in RSA consists of "encrypting using the private key". One could interchange the roles of the private and public keys, and the algorithm would still work mathematically. But this isn't a general feature of all asymmetric cryptosystems.

(Even for RSA, although mathematically you could switch the private and public keys, this would totally blow its security: as typically implemented, the public exponent is an arbitrary integer that doesn't have to be secret, and people usually just use 65537. But the private exponent is hard to compute without knowing the primes used to generate the key. So if you released what was intended to be the "private" key as your public key, people would have no trouble guessing the other key as well, and then you have no security.)

> **Comments:**
> **username_4**: Your answer is correct. I'd like to add that in RSA, mathematically speaking the public key and private key behave the same way, but in practice we tweak them. The public exponent is one of those tweaks. Another tweak is that the private key contains the factorization of *n*, which allows faster arithmetic via the Chinese remainder theorem.  

---

### Answer by username_3 on 2016-02-03. Score: 6

No.

Your private key can be decoded/reversed to reveal your public key. Public keys can not be reversed to reveal the private key. If you share your private key they have EVERYTHING.


---

