Private Key

Private key is result of random generation and it is big numbers. Private key can derive public key and it must be known only by owner otherwise your bitcoin amount will be stolen by others.
  • Always 32 bytes long.

Public Key

Public key derived from private key. In turn, public can drive address.
  • Always 65 bytes long for uncompressed public key.
  • Always 33 bytes long for compressed public key.
  • In hex representation. Value 0x02 and 0x03 are meant to compressed version while 0x04 is meant to uncompressed version.
* Please note that length in byte mentioned above is all meant to binary data. However, in hex representation, you have to times 2. e.g, 32 bytes long in hex presentation is 64 bytes.

About Us
Contents have been open source in GITHUB. Please give me a ⭐ if you found this helpful :)
Problem? Raise me a new issue.
Support Us
Buy me a coffee. so i can spend more nights for this :)

BTCSCHOOLS would like to present you with more pratical but little theory throughout our tutorials. Pages' content are constantly keep reviewed to avoid mistakes, but we cannot warrant correctness of all contents. While using this site, you agree to accept our terms of use, cookie & privacy policy. Copyright 2019 by BTCSCHOOLS. All Rights Reserved.