Bitcoin Forum
May 02, 2024, 06:36:54 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Use other cryptographic hash to create bitcoin address  (Read 113 times)
Sanglotslongs (OP)
Sr. Member
****
Offline Offline

Activity: 448
Merit: 280



View Profile
July 16, 2021, 10:03:36 AM
Merited by hugeblack (4), NotATether (2), ABCbits (1)
 #1

Hello,

I'm studying this graph "how to generate a bitcoin address" :

https://royalforkblog.github.io/2014/08/11/graphical-address-generator/

But if SHA256 and RIPE160 give us only bytecode that is X bits long and the orignal secret to all of this is a random 256 bits number.

Can I create bitcoin address with another cryptographic hash like BLAKE2 ?
1714631814
Hero Member
*
Offline Offline

Posts: 1714631814

View Profile Personal Message (Offline)

Ignore
1714631814
Reply with quote  #2

1714631814
Report to moderator
1714631814
Hero Member
*
Offline Offline

Posts: 1714631814

View Profile Personal Message (Offline)

Ignore
1714631814
Reply with quote  #2

1714631814
Report to moderator
1714631814
Hero Member
*
Offline Offline

Posts: 1714631814

View Profile Personal Message (Offline)

Ignore
1714631814
Reply with quote  #2

1714631814
Report to moderator
Make sure you back up your wallet regularly! Unlike a bank account, nobody can help you if you lose access to your BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714631814
Hero Member
*
Offline Offline

Posts: 1714631814

View Profile Personal Message (Offline)

Ignore
1714631814
Reply with quote  #2

1714631814
Report to moderator
1714631814
Hero Member
*
Offline Offline

Posts: 1714631814

View Profile Personal Message (Offline)

Ignore
1714631814
Reply with quote  #2

1714631814
Report to moderator
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5578


Self-proclaimed Genius


View Profile
July 16, 2021, 10:27:11 AM
Merited by NeuroticFish (8), hugeblack (4), pooya87 (2), ABCbits (2), Pmalek (2), NotATether (2), BlackHatCoiner (1)
 #2

Possible but you won't be able to spend from it.
Eg.: P2PKH's locking script contains OP_HASH160 which specifically uses SHA256 and RIPEMD-160.
Clients wont be able to verify a "Public Key Hash" generated from other cryptographic hash functions.

This is worth the read: https://learnmeabitcoin.com/technical/p2pkh | https://en.bitcoin.it/wiki/Script#Crypto

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10522



View Profile
July 16, 2021, 12:49:38 PM
Merited by NeuroticFish (2), ABCbits (2), hugeblack (2)
 #3

Clients wont be able to verify a "Public Key Hash" generated from other cryptographic hash functions.
To be clear: There is no OP code for OP_BLAKE2 in bitcoin scripts so you can't even create it for clients to want to verify.
There are only 3 hash algorithms available as OP codes: SHA1, SHA256, and RIPEMD160. (there are also 2 "combination" OP codes OP_HASH160 and OP_HASH256 which use the same hash algorithms).

Adding a new hash algorithm to OP codes requires a soft fork.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
NotATether
Legendary
*
Online Online

Activity: 1582
Merit: 6718


bitcoincleanup.com / bitmixlist.org


View Profile WWW
July 17, 2021, 06:33:11 AM
 #4

There are only 3 hash algorithms available as OP codes: SHA1, SHA256, and RIPEMD160.

Also there's no way to encode  a sha1 or sha256 message as a base58 address (thus send it to someone to pay you at), because all of the currently defined formats expect ripemd160 hash as input.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10522



View Profile
July 17, 2021, 07:29:04 AM
 #5

Also there's no way to encode  a sha1 or sha256 message as a base58 address (thus send it to someone to pay you at), because all of the currently defined formats expect ripemd160 hash as input.
True but addresses are more like agreements rather than consensus rules, so technically two parties can come up with an agreement that a certain encoded strings represent certain script types. It's just that we agree that a base58 string that is [0x00 + 20 bytes] represents a P2PKH script, we can simply extend this agreement (whether globally or between two parties) that a base58 string that is [0x01 + 20 bytes] P2PKH with the hash replaced by SHA1.

P.S. SHA1 is not safe to use by the way.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!