Questions tagged [base58]

Base58 is a format for representing data using only letters and numbers, but no letters which might look ambiguous when printed.

Base58 is a format for representing data using only letters and numbers, but no letters which might look ambiguous when printed. It might be an appropriate tag, depending on the importance of the Base58 format in the context of your question or answer.

If your question or answer makes just as much sense when the formats used do NOT include Base58 as when they do, then don't use the tag, as it will merely pollute its meaning.

57 questions
17
votes
1 answer

How can I convert a SHA256 hash into a Bitcoin base58 private key?

How can I take the output of sha256sum sudofox@ubuntu:~$ echo -n 'Hi guys!' | sha256sum 7542fb6685f9fd8f37d56faf62f0bb4563684a51539e4b26f0840db361e0027c - and turn it into a Base58Check encoded private key? I need to be able to do this with a list…
Austin Burk
  • 1,109
  • 2
  • 9
  • 15
7
votes
1 answer

Was Base58 invented for Bitcoin?

Base58 is very useful whenever data needs to be written down, but I've never seen it mentioned in any context other than Bitcoin. Was it invented by Satoshi specifically for use in Bitcoin?
Meni Rosenfeld
  • 19,650
  • 35
  • 70
6
votes
1 answer

Why is Bitcoin address encoded in base58?

Why does bitcoin address encoding use base58 instead of, for instance, base64? I don't see it is useful in any way.
dafunkizdiz
  • 63
  • 1
  • 4
5
votes
3 answers

ELI5: What is Base58Check encoding?

I've seen posts on how to do it and I've read the wiki on what it is, however these explanations are too complex. Can someone explain what it is and why it's called Base58Check encoding? Are addresses generated without going over those steps still…
arshbot
  • 1,710
  • 14
  • 35
5
votes
2 answers

Why are P2WSH addresses larger than P2SH addresses?

One would, perhaps naively, assume that both addresses are hashes of scripts and therefore ought to be the same size.
Bertram Lund
  • 671
  • 3
  • 7
4
votes
1 answer

How to make a vanity throwaway address? Similar to 1BitcoinEaterAddressDontSendf59kuE

I want to write data to the Blockchain, and write to specific addresses. I want to send small amounts of Bitcoin to addresses like this: 1MikesReallyCoolApp59kuE How can I do this while still maintaining a valid address to send BTC to?…
Mike
  • 161
  • 3
3
votes
3 answers

Cashaddr (bech32) to legacy address format convertor for Bitcoin Cash

Several days ago our bitcoin cash core wallet started to generate addresses using the new format: bitcoincash:q...... . That's nice and differs from the bitcoin blockchain generated addresses, but some of our users have problems with the new address…
0x49D1
  • 207
  • 2
  • 8
3
votes
2 answers

Is this how to generate a bitcoin address with python?

So I have already the public key. My question is if I'm applying correctly the b58 encoding, since bitcoin uses b58check, and also adds x00 prefix. Can somebody explain me that? Thanks. import hashlib import base58 # ECDSA Public Key base64_str =…
John Smith
  • 271
  • 2
  • 10
3
votes
6 answers

Correct way to convert a 256-bit private key to WIF?

On the Bitcoin wiki it has steps to convert a private key to WIF. So I tried following these steps in attempt to get the same result. So I took the private key. 0C28FCA386C7A227600B2FE50B7CAE11EC86D3BF1FBE471BE89827E19D72AA1D I put 80 on the…
Nick
  • 33
  • 1
  • 1
  • 3
3
votes
2 answers

Encoding my Bitcoin Address with Base58 encoding

I am trying to convert my Bitcoin Address with BitcoinJ in order to look like a normal address such as this: 1J7mdg5rbQyUHENYdx39WVWK7fsLpEoXZy. I haven't found anything exept for the Base58.encode() which takes the getPubkeyHash() of my ECKey and…
gtopal
  • 359
  • 1
  • 11
3
votes
1 answer

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 stand for numbers that happen to start with zeroes,…
Claudiu
  • 447
  • 3
  • 9
3
votes
1 answer

Creating Base58 public key & private key in Java?

How can I create a base58 private key and public key in Java? I'm pretty familiar with Java and I have the bitcoinj-minimal code, but it's not clear to me how I can generate a base58 key pair from the code.
simmi
  • 31
  • 2
3
votes
1 answer

Why P2SH seems to be never smaller than 34 characters, unlike P2PKH?

Why base58 of P2SH invoice address seems to be never smaller than 34 characters; unlike base58 of P2PKH invoice address, in which 33 characters is very common? Bitcoin wiki tells (format and emphasis mine): Some Bitcoin invoice addresses can be…
Mercedes
  • 731
  • 4
  • 24
2
votes
2 answers

Why are hashes base16 (hex) encoded rather than base58 encoded?

BTC sha256 hashes are hex encoded (as sha256 spits out bytes not a string), why is this? Surely using base58 would be more efficient as would use less space (would output a shorter string)
Leah Cornelius
  • 362
  • 2
  • 7
2
votes
0 answers

How to convert a bitcoin address to the respective hash160 using bash?

I want to convert a list of bitcoin addresses to their respective hash160 values as illustrated using bash :
Aurigae
  • 664
  • 1
  • 4
  • 14
1
2 3 4