Difference between revisions of "Public key to bitmessage address"

From Bitmessage Wiki
Jump to navigation Jump to search
(made this thing a lot better)
Line 4: Line 4:
 
The variable after the list is used to refer to the step later
 
The variable after the list is used to refer to the step later
  
# The public part of the signing key and the encryption key are merged together. (A)
+
# Create a private and a public key for encryption and signing (resulting in 4 keys)
 +
# Merge the public part of the signing key and the encryption key together. (A)
 
# Take the SHA512 hash of A. (B)
 
# Take the SHA512 hash of A. (B)
 
# Take the RIPEMD160 of B. (C)
 
# Take the RIPEMD160 of B. (C)
# Repeat step 3 until you have a result that starts with a zero (Or two zeros, if you want a short address). (D)
+
# Repeat step 1-4 until you have a result that starts with a zero (Or two zeros, if you want a short address). (D)
 
# Remove the zeros at the beginning of D. (E)
 
# Remove the zeros at the beginning of D. (E)
 
# Put the stream number (in big endian) in front of E. (F)
 
# Put the stream number (in big endian) in front of E. (F)

Revision as of 12:23, 21 August 2013

This page briefly describes, how to generate a Bitmessage Address from a public key. The variable after the list is used to refer to the step later

  1. Create a private and a public key for encryption and signing (resulting in 4 keys)
  2. Merge the public part of the signing key and the encryption key together. (A)
  3. Take the SHA512 hash of A. (B)
  4. Take the RIPEMD160 of B. (C)
  5. Repeat step 1-4 until you have a result that starts with a zero (Or two zeros, if you want a short address). (D)
  6. Remove the zeros at the beginning of D. (E)
  7. Put the stream number (in big endian) in front of E. (F)
  8. Put the address version (in big endian) in front of F. (G)
  9. Take a double SHA512 (hash of a hash) of G and use the first four bytes as a checksum, that you append to the end. (H)
  10. base58 encode H. (J)
  11. Put "BM-" in front J. (K)

K is your full address