Bitcoin Forum
May 21, 2024, 08:21:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin address manual generetion  (Read 135 times)
Prostoyarko (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
March 08, 2021, 12:33:07 PM
 #1

Hi, I'm trying to generate Bitcoin address from private key manually following this article https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses
But when I apply SHA-256 to public key mentioned in example I'm getting another hash then shown in this article. Same happens when I perform RIPEMD-160 hashing of SHA-256 hash.
It happens not only when I follow this article but any other article too.
Could someone suggest what did I do wrong?
BlackHatCoiner
Legendary
*
Online Online

Activity: 1526
Merit: 7397


Farewell, Leo


View Profile
March 08, 2021, 12:40:45 PM
Merited by mocacinno (1), ABCbits (1)
 #2

Could someone suggest what did I do wrong?
You're probably hashing a string and not a hex. On the third step, you'll have to hash it as a hex and not as a string. Based on the wiki's example if you hash the corresponding public key as a hex you'll get the correct result:

Code:
0b7c28c9b7290c98d7438e70b3d3f7c848fbd7d1dc194ff83f4f7cc9b1378e98

But if you hash it as a string you'll get a different result, which is:
Code:
a9ce83de3a0ff3516b7c50cdd787e9f69f152f227d93c9512774231e7132e925

You can hash a hex through emn178.github.io. Just choose "hex" instead of "text" in the input type dropdown. Same thing must happen on RIPEMD-160.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Prostoyarko (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
March 08, 2021, 01:33:36 PM
 #3

Great! This is it. Maybe you may suggest any tool which can encode HEX values using RIPEMD-160?
BlackHatCoiner
Legendary
*
Online Online

Activity: 1526
Merit: 7397


Farewell, Leo


View Profile
March 08, 2021, 02:07:19 PM
 #4

Great! This is it. Maybe you may suggest any tool which can encode HEX values using RIPEMD-160?
But this is not an encoding. It's a hash function. Encoding means that it can also be decoded, for example a base64 text. Anything that has passed through a hash function like SHA256 or RIPEMD-160 means that there is no way back. As for recommended tools, what exactly are you looking for? Tool can be a line of code, a library or a site just like the one I posted. You have to clarify what you want to do.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Prostoyarko (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
March 08, 2021, 02:23:59 PM
 #5

I mean tool for performing RIPEMD160 hashing for HEX values. Because all online hash tools work only with String input data
ranochigo
Legendary
*
Offline Offline

Activity: 2982
Merit: 4193



View Profile
March 08, 2021, 02:28:54 PM
 #6

I mean tool for performing RIPEMD160 hashing for HEX values. Because all online hash tools work only with String input data
I've used this before: https://www.pelock.com/products/hash-calculator.

Go to the page and input the values in hash hex bytes and scroll down for RIPEMD160.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
BlackHatCoiner
Legendary
*
Online Online

Activity: 1526
Merit: 7397


Farewell, Leo


View Profile
March 08, 2021, 02:29:02 PM
 #7

I mean tool for performing RIPEMD160 hashing for HEX values. Because all online hash tools work only with String input data

https://learnmeabitcoin.com/tools/ripemd160/

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Prostoyarko (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
March 08, 2021, 02:34:04 PM
 #8

Thanks!!!
Husires
Legendary
*
Offline Offline

Activity: 1596
Merit: 1287


View Profile WWW
March 09, 2021, 11:10:54 AM
 #9

i used this https://www.mobilefish.com/services/cryptocurrency/cryptocurrency.html to learn how to generate bitcoin address from random numbers.


Use it to learn how bitcoin works and never send bitcoin to it.
Cazemiro
Member
**
Offline Offline

Activity: 252
Merit: 31


View Profile
March 09, 2021, 11:44:49 AM
 #10

Hi, I'm trying to generate Bitcoin address from private key manually following this article https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses
But when I apply SHA-256 to public key mentioned in example I'm getting another hash then shown in this article. Same happens when I perform RIPEMD-160 hashing of SHA-256 hash.
It happens not only when I follow this article but any other article too.
Could someone suggest what did I do wrong?

I had the same problems, the study is the key. For educational purpose a made this:
https://bitcointalk.org/index.php?topic=5322103.0
And use this site to learn how hash works:
https://www.fileformat.info/tool/hash.htm
This forum has a lot of material, for increase your  learning.



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!