Questions tagged [base58check]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
283 views

How to convert xpub ypub and zpub in Ruby

I'm looking to convert a Bitcoin extended public key from one format to another in Ruby. In JS I've found https://github.com/jlopp/xpub-converter/blob/master/js/xpubConvert.js and Python https://...
user avatar
1 vote
1 answer
53 views

ELI5: is it true that Base58 doesn't prevent typo, but Base58check does, really because there is a checksum?

I am reading the book Grokking Bitcoin by Manning 2019. It first said, if John sends the token (bitcoin) to the cafe owner but made a typo in the cafe's address (the PKH), then that token is "...
user avatar
0 votes
1 answer
109 views

How to handle leading 0's (b58 1's) when base58check encoding

I'm trying to more fully understand the base58check encoding algorithm. Unfortunately, I keep running into a problem with how to handle a situation where the base58 value of an input would have ...
user avatar
1 vote
0 answers
594 views

How to get the compressed WIF of my key?

I'm a trying to understand the different encoding on the private keys. What format is used by the iancoleman validator and why? How can I reproduce it? All my Data is valid. According to the bitcoin ...
user avatar
1 vote
1 answer
215 views

How does Base58Check prefix character prediction work?

I'm trying to implement Base58Check as a learning exercise and I came across the different types of prefixes as summarised here. I wonder however how to arrive in the expected prefix characters from ...
user avatar
1 vote
1 answer
384 views

Why does my implementation of hex to Base58check produce different results than the example?

Step 8 of this wiki page gives this hex value: 00010966776006953D5567439E5E39F86A0D273BEED61967F6 Step 9 converts it to this base58 string:16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM I'm trying to implement ...
user avatar
2 votes
2 answers
422 views

Why are compressed private keys typically longer than their uncompressed counterpart?

From what I understood, compressed private keys are supposed to represent the same secret key, stored more efficiently thus taking up less space. I assume 'more efficiently' has to do with secp256k1 ...
user avatar
2 votes
2 answers
2k views

How does the bip32 version bytes convert to base58?

Converting the BIP32 version bytes - x04\x88\xad\xe4 - from base256 to base58 and base58Check returns 7irrX and 1kz713TZjju, respectively. I thought the version bytes represented xprv. What am I ...
user avatar
4 votes
2 answers
2k views

How do I get to the value in the 'scriptPubKey' part of the transaction ?

How do I get to the value in the 'scriptPubKey' part of the transaction ? The sender knows only the address (1A3XjcuZmcszX2tGoVn1TrMNchuHwdAxZV) so how did he get into ...
user avatar
3 votes
1 answer
463 views

Why can addresses be shorter than 34 bytes?

The wiki entry on Address says: Some Bitcoin addresses can be shorter than 34 characters (as few as 27 in theory) and still be valid. [...] These shorter addresses are valid simply because they ...
user avatar
  • 447
2 votes
2 answers
2k views

What is the correct Base58 encoding for this uncompressed Public Key RipeMD hash with a zeros in bits 31, 32, or 33?

My understanding is that Base58Checked is always 34 bytes long, and isn't going to be less than 34 bytes even if the first or last bytes of the RipeMD are zero. If this statement isn't true, then ...
user avatar
0 votes
1 answer
609 views

Base58Check encoding: Using for Version 4 UUID?

Can Base58Check encoding be used to encode a Version 4 UUID? This would be handy for the same reasons as encoding Bitcoin public keys in Base58Check instead of Base64. I've read the Bitcoin wiki ...
user avatar
5 votes
1 answer
396 views

Does a Vanity Address reduce the randomness / entropy of the private key? Is there cryptographic proof?

Since a vanity address discards many "valid" keys in order to find one that matches a pre-determined string, I think that the "randomness" of the data would be reduced, thus weakening the key. Is ...
user avatar
1 vote
1 answer
72 views

What development tests should I do when creating a Base58Checked parser? [closed]

Are there any special tests (test data) I should run against my code if I've written a Base58Checked encoder/decoder?
user avatar
3 votes
1 answer
6k views

How do I Base58 Checked encode / decode an address in C#? What does "normalize leading zeros" mean?

I am trying to encode and decode a Base58 address in C#. The following function is a start, but it has a few issues: This code does not normalize leading zeros (what does that look like?) If this ...
user avatar
8 votes
1 answer
851 views

Why does vanitygen ban certain letters on testnet?

I'm guessing that vanitygen is more strict or has different rules than production's Base58 rules. Why are some of thse names marked not possible? C:\vanitygen>oclvanitygen -k -o gpukeystestout....
user avatar
4 votes
2 answers
652 views

What would happen if two public keys had the same Base58 hash?

If two different public keys had the same Base 58 hash, what would happen? Could one key spend money in the other account? What would happen to the monies received by the shared base58 hash?
user avatar
11 votes
2 answers
2k views

How many bitcoins have been sent to Base58-invalid addresses?

Some bitcoins have been permanently lost when they are sent the the following addresses. The explanation I've found is that they contain characters that are invalid in Base58 ...
user avatar
4 votes
1 answer
316 views

Why does it take a different time to generate a different pattern of the same length in vanitygen?

I've been looking at generating some vanity addresses today, and I found it surprising that the program generating the address predicts that it will take a different amount of tries to compute a ...
user avatar
  • 42.7k