Bitcoin Forum
June 16, 2024, 09:18:47 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Generating public address  (Read 162 times)
nofiat (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 2


View Profile
December 12, 2017, 02:12:09 PM
 #1

Hi,

I'm trying to generate a public address from a public key. I've read the docs at https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses.

In step 2, it says to encrypt (sha256) the public key.
However, the result is 32511e82d56dcea68eb774094e25bab0f8bdd9bc1eca1ceeda38c7a43aceddce and not what they showed in step 2 (600FFE422B4E00731A59557A5CCA46CC183944191006324A447BDB2D98D4B408).
What am I missing here?
SopaXT
Full Member
***
Offline Offline

Activity: 158
Merit: 113


View Profile
December 12, 2017, 07:22:47 PM
 #2

You're hashing the hex string instead of the binary data: https://bitcoin.stackexchange.com/questions/43347/how-to-generate-bitcoin-address/.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!