Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [checksum]

The tag has no usage guidance.

3 votes
0 answers
52 views

What is the advantage of using truncated HASH256 over CRC32?

Some of the checksums in Bitcoin are the first 4 bytes of the HASH256 of the data. HASH256 is just double SHA256, so SHA256(SHA256(data)). What is the advantage of that over using a dedicated checksum ...
dbv's user avatar
  • 131
4 votes
1 answer
116 views

Why checksum the privkey in WIF?

Why does the WIF conversion process mandate the double-hash-and-append on the 80+privkey / 80+privkey+01 string, given that nobody is questioning the correctness of that privkey number?
Lilacrail's user avatar
  • 141
-2 votes
1 answer
201 views

How to calculate checksum of Address using Python

Lower Bit Range: 245 Upper Bit Range: 256 The Checksum of address 1H5aq8vssj9fCKdw2mYEn8enzpUMEBsUZ7 is 9ed6e860. I tried the following but got incorrect result 69e65f22 import hashlib ...
Murphy Celestine's user avatar
3 votes
2 answers
894 views

How do blockchain explorers know if the address is really generated?

I am studying how the Bitcoin addresses generation works. As far as I learned, a Bitcoin address appears in the blockchain only after it has been involved in its first transaction. If an address has ...
Alex's user avatar
  • 33
1 vote
1 answer
263 views

Are BIP39 checksum collisions a thing? [duplicate]

My understanding is that 12th word is a checksum… so why are following mnemonics both valid? gather video album produce report surge grant buzz buzz jaguar modify occur gather video album produce ...
sunknudsen's user avatar
0 votes
1 answer
228 views

How much can be stripped of a base58 address in a recoverable way?

Since P2PKH and P2SH addresses use Base58Check_encoding, the 4 byte checksum appended in binary contains some redundancy. Strictly mathematically speaking, those 4 bytes correspond to ca. floor(log(2^...
Tobias Kienzler's user avatar
1 vote
1 answer
1k views

Stumped on finding checksum for 12 word Bip39 mnemonic

I read Pseudo code to find Bip39 checksum? and followed the steps outlined by the answer and arrived at the correct checksum. But when I went to try it on a 128 bit entropy that were all 1s: ...
ssocolow's user avatar
1 vote
1 answer
3k views

How to properly compute the BIP39 checksum bytes?

I'm trying to understand the logic of generating a valid BIP-39 seed phrase. I have read the BIP-39 and trying to implement the section Generating the mnemonic step by step. I have the following ...
q9f's user avatar
  • 1,445
2 votes
1 answer
1k views

Compute checksum for Bech32 address

The Bitcoin Wiki page for Bech32 addresses explains how one can create a bech32 address from a public key. In step 6 it says- Compute the checksum by using the data from step 5 and the H.R.P (bc for ...
Nissim R's user avatar
  • 123
8 votes
5 answers
2k views

checksum = SHA256(SHA256(prefix+data)) - why double hashing?

From 'Mastering bitcoin' - checksum = SHA256(SHA256(prefix+data)) The 'data' is, for example, an address, which was calculated using SHA256 and then RIPEMD160. Why do we need double hashing when ...
Rony Tesler's user avatar
1 vote
1 answer
411 views

`getdescriptorinfo` for private key

Public key: bitcoin-cli getdescriptorinfo "wpkh(027fda10f37e6c637a1cfeba2cbada86de36f28e63d4ded9e1314117739f6419a9)" { "descriptor": "wpkh(...
user avatar
0 votes
1 answer
279 views

How do I obtain a checksum for a Taproot descriptor so that I can import it using importmulti?

I tried to import an example Taproot descriptor using bitcoin-cli importmulti tr(c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5,{pk(...
Michael Folkson's user avatar
3 votes
2 answers
600 views

Pseudo code to find Bip39 checksum?

I'm trying to find the checksum for a 12-word BIP39. I can find the first eleven words just fine, but my 12th word is always off by a few positions. For example, take the 128-bit entropy ...
Daniel Portugal's user avatar
2 votes
1 answer
377 views

What is the probability of different public key hash that produce the same checksum value

checksum = 1st4byte(sha256(sha256(PubKeyHash))) checksum1 = 1st4byte(sha256(sha256(PubKeyHash1))) What is the P(checksum == checksum1)? where PubKeyHash != PubKeyHash1 Is it 1/(2^^32)?
Cisco Mmu's user avatar
  • 335
2 votes
1 answer
530 views

How to manually compute a descriptors checksum?

In the docs it says: The checksum for a descriptor without one can be computed using the getdescriptorinfo RPC. I would like to build a recovery tool where many descriptors are imported, calling ...
Fontaine's user avatar
  • 522

15 30 50 per page