Skip to main content

Questions tagged [ripemd160]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
68 views

Do we pay cheaper fees for less security in P2TR rather than P2PKH?

Answer quote: P2TR now is a spiritual successor of P2PK: it locks funds directly to a key and only requires a signature to spend the funds. If P2TR UTXOs are guarded by Schnorr signatures and P2PKH ...
Mercedes's user avatar
  • 824
3 votes
1 answer
776 views

Is there any known 80-bit collision attack?

Regarding [bitcoin-dev] Time to worry about 80-bit collision attacks or not? considering that it is from July 2016, is there any known instance of this attack in practice? Also what addresses are ...
WebOrCode's user avatar
  • 373
1 vote
1 answer
570 views

replicating Hash160 with SHA256/RIPEMD160

I have a dumb question about Hash160 (specifically, going from a public key to Hash160). If I take a public key: ...
FKAjasmine's user avatar
1 vote
1 answer
200 views

Baffled by endianness: How do I compute the HASH160 of the public key of a base58 address?

Given an address as follows: > spend_address=$(btc-cli getnewaddress '' legacy) > btc-cli getaddressinfo $spend_address spend_address info { "address": "...
davidbak's user avatar
  • 261
3 votes
1 answer
803 views

Why does the TXID have 256 bits when Bitcoin's address security is 160-bit?

Commonly used Bitcoin addresses have the security of 2160 (due to the RIPEMD-160 hash). This means that Bitcoin is based on the fact that 160-bit security is good enough. If someone breaks 160-bit ...
Aleš Janda's user avatar
0 votes
1 answer
1k views

RIPEMD 160 Hashes

I have observed that BTC Address 1111111111111111111114oLvT2 has the public key RIPEMD 160 Hash is 0000000000000000000000000000000000000000 whereby 111111111111111111112BEH2ro has the public RIPEMD ...
Muhammad Adnan Alam's user avatar
0 votes
1 answer
547 views

How to generate the hash of public key in Bitcoin [closed]

I'm trying to hash the public key with SHA256 and then ripemed160 and get the hash. but it gives the wrong hash Public key: 2b4632d08485ff1df2db55b9dafd23347d1c47a457072a1e87be26896549a8737 Hash ...
Pretty Girl's user avatar
0 votes
1 answer
57 views

Learning + checking the bitcoin address creation process at each step

I’m learning how hashing algorithms are used around the process of bitcoin address creation. I’ve read lots of great examples online that, step by step, show the output of each sequential hashing ...
CB1066's user avatar
  • 3
1 vote
2 answers
503 views

SHA256 vs RIPEMD160 in SegWit

In Pay-To-Witness-Public-Key-Hash (P2WPKH), the RIPEMD160 hash function is used to hash the public key of the recipient in the locking script. On the contrary, Pay-To-Witness-Script-Hash (P2WSH) uses ...
dcfg's user avatar
  • 404
1 vote
1 answer
571 views

Bitcoin RIPEMD160 purpose

Bitcoin uses RIPEMD160 on top of SHA256. Is its sole purpose to make public key address shorter or does it strengthen security in any way?
Jamol's user avatar
  • 13
1 vote
2 answers
2k views

Two addresses with same hash160?

It seems that two addresses have same hash160 69665e2c4fac771e340f8c6f91c719b0c37a6a8f: here 0 BTC: https://blockchain.info/address/1AcJanbHGrBFwS3KJMDW8kEZMtHiJhatzE here 0.00720407 BTC: https://...
Basj's user avatar
  • 354
2 votes
3 answers
2k views

Convert between String/Hex/Byte in Java for sha256 - wrong format?

I am trying to convert a bitcoin address and have the following code from here (Calculate Segwit address from public address, 2nd answer): Step1: $ printf 1L88S26C5oyjL1gkXsBeYwHHjvGvCcidr9 > adr....
A.c's user avatar
  • 145
0 votes
2 answers
3k views

Convert list of BTC address(base58) to Ripemd16(base16) [closed]

Are there online tool or repositories that can convert multiple base58 (BTC address) to base16 simultaneously?
Nael Cruz's user avatar
0 votes
2 answers
380 views

How can address' hash160 be used to determine information for malicious purposes? (Ie reusing of the same address)

I've been playing around with Richard Kiss's Pycoin app which is clarifying how P2PK works. I see that the hash160 of the value: (0x04) (x-coordinate) (y-coordinate) (for an uncompressed Testnet ...
Wizard Of Ozzie's user avatar
0 votes
1 answer
56 views

What are some valid ways to obfuscate the scriptPubKey?

Is it possible to hide the balance of an address from standard clients who may be watching blockchain? I'm thinking about using script to modify the the key that is to be verified, but am having ...
makerofthings7's user avatar
1 vote
1 answer
85 views

In a perfect world, should RIPE160 be used as the block ID or transaction ID?

Edit: In this question I'm looking at storage advantages, and network bandwidth savings. Given that the TxID and BlockID uses SHA256 to uniquely identify a transaction (and block) is there any ...
makerofthings7's user avatar
1 vote
1 answer
860 views

Can a brainwallet passphrase be derived if an attacker has obtained the private keys of an empty wallet.dat file?

Someone robbed me at gunpoint and took my laptop. The laptop contained an encrypted hardrive with a wallet.dat file. Both the hardrive and wallet.dat had at best weak passphrases for the encryption. I ...
user12247's user avatar
2 votes
1 answer
450 views

The bitcoin address space seems to be closer to 2^40, not 2^160

The Base58 Encoding of a public key hash outputs: "A set of 58 alphanumeric symbols consisting of easily distinguished uppercase and lowercase letters (0OIl are not used)" This set is a fixed string ...
Robert Christian's user avatar
6 votes
2 answers
6k views

Why was the RIPEMD-160 hash algorithms chosen before SHA-1?

Bitcoin uses both SHA-256 and RIPEMD-160 hashes. Most often a double-round SHA-256 is used, but for address generating, RIPEMD-160 is used because it generates a shorter hash value. RIPEMD-160 has a ...
Steven Roose's user avatar
  • 11.9k
35 votes
1 answer
10k views

Why are Bitcoin addresses hashes of public keys?

Currently, Bitcoin addresses and their checksums are constructed from the public key by a using repeated hashing with SHA256 and RIPEMD160. Now I understand the reasoning behind using hashing for ...
Noah's user avatar
  • 1,479