Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [base58]

The tag has no usage guidance.

0
votes
0answers
69 views

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 :
1
vote
1answer
300 views

Converting Litecoin M-addresses to a more commonly accepted format

Is there any way to convert an (LTC) M prefix address to an L prefix address? Many services an apps that accept and transfer LTC reject M-addresses as invalid, even though they are given out by ...
1
vote
1answer
221 views

How to convert script hash to base58 address?

For example : take a look at this 37d1d453311ea5682cdb31468826178db15fa731722a5dbb09525ea901f1c41c scripthash. I need help converting it to base58 address. Thank you.
0
votes
1answer
37 views

Which source code to make “checksum bits appended”

Can anyone tell me the specified source code to make "checksum bits appended", before doing Base58 conversion? Thanks very much!!!!
2
votes
2answers
936 views

encode/decode Base-58 C++

I have built a base-58 encoder using this formula: https://www.youtube.com/watch?v=GedV3S9X89c&feature=youtu.be Is there a smarter way to encode/decode with base-58? I read somewhere that you ...
1
vote
3answers
799 views

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 ...
0
votes
2answers
265 views

base58 cannot get 34 chars results (as Bitcoin address does) but 68 chars

I am trying to convert public key hex to Bitcoin address. From this website http://gobittest.appspot.com/Address, I can do some test. For example, I have this public key: ...
0
votes
0answers
122 views

Base58 mismatch error

I am trying to run some tests on my altcoin, it says base58 mismatch. What is this error? $ ./src/test/test_altcoin Running 262 test cases... test/base58_tests.cpp:164: error: in "base58_tests/...
0
votes
1answer
63 views

Extract output address from raw script in bitcoin protocol

I'm working on bitcoin protocol and exactly i want to extract raw script from output script to gain address from tx messages. for common scripts, like scripts start with 0x76(means OP_DUP), we can ...
1
vote
1answer
181 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 ...
4
votes
1answer
684 views

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.
3
votes
3answers
2k views

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 ...
1
vote
1answer
809 views

Java: Base58-encode String

I would like to Base58-encode this String: 56379c7bcd6b41188854e74169f844e8676cf8b8 My current Java code looks like this: String test9 = "56379c7bcd6b41188854e74169f844e8676cf8b8"; byte[...
0
votes
2answers
748 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?
1
vote
1answer
817 views

Convert byte string into a base58 string using Base58Check encoding

I'm trying to learn every bit of the process of converting a private key to WIF (Wallet Import Format). I've been following the steps on this page and have made it all the way to the last step (Step 7 ...
3
votes
2answers
1k views

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 ...
2
votes
2answers
132 views

What is the significance of the last 5 digits of Base 58 WIF?

I'm trying to understand the Base 58 WIF number. While messing around with importing on blockchain I noticed that if you change the last five (or so) digits, it doesn't appear to affect which address ...
2
votes
1answer
1k views

How can I convert a bitcoin private key (hex) into a Bitcoin public key? [duplicate]

How can I take a bitcoin private key encoded in hex: d1d9a2e9fd3da7e7710310ea17a9edff9e08845c7a6f2ea3d650ba4ae7ee0d3b and convert it to the corresponding public key: ...
1
vote
4answers
10k views

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. ...
2
votes
2answers
1k views

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() ...
4
votes
1answer
616 views

How to make a vanity throwaway address? Similar to 1BitcoinEaterAddressDontSendf59kuE [duplicate]

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: 1MikesReallyCoolApp<game_id_here>59kuE How can I do ...
2
votes
1answer
372 views

Secret Key value for decimal versions over 127

After reviewing the address prefixes page on the wiki, I have noticed that in Bitcoin and other altcoins that the secret key / dumped private key header is always the decimal version + 128. So with a ...
1
vote
1answer
2k views

private key to wif - need help converting to base58encode (step 6 to step 7)

I am trying to learn more about how bitcoin addresses are created. I am following along with the tutorial at https://en.bitcoin.it/wiki/Wallet_import_format I undertsand how they do the first six ...
2
votes
2answers
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 ...
0
votes
1answer
2k views

What version byte will produce a Base58 encoding starting with X?

What is the Value of X in Base58? The Problem is when I referred to this table: https://en.bitcoin.it/wiki/Base58Check_encoding I in the end come up with D when I used 30, but I want X, so what will ...
1
vote
1answer
702 views

Get private key from BigInteger

I have a BigInteger that represents a private key. How can I get that private key as a base58 encoded string? The following pseudo code does not work properly: base58.encode(bigInt.toByteArray) // ...
0
votes
3answers
407 views

Getting sender address, python

Getting senders account Say we got txid by listtransactions: "txid" : "2ca54b92338e52bbb16562dd7a91e8670d9362bb255e21fb568acc13e732b6b7" then getrawtransaction ...
-1
votes
1answer
300 views

CoinPunk questions with private base58 encoded private keys?

I am extemely sorry if this not the right place... but thought I could maybe get some pointers? Well, basically, if you look at this: https://github.com/kyledrake/coinpunk/blob/master/lib/bitcoinjs/...
2
votes
0answers
282 views

Converting multiple btc private keys in standard text format to WIP

Ok, going crazy! I have a file that lists my old private keys (2011) (not original wallet.dat, just keys txt file). I need to convert each of these keys (not one at a time) into either a WIP key (...
2
votes
1answer
325 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 ...
2
votes
2answers
1k views

Does the 256-bit integer secret exponent define the X, Y pair?

I'm trying to understand better how bitcoin works and I'm stuck. I've read a blog showing how to construct the WIF from the 256-bit secret integer and up to that point, I think I follow. However I'm "...
1
vote
1answer
303 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 ...
5
votes
1answer
1k views

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?
3
votes
1answer
2k views

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 ...
15
votes
2answers
21k views

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 ...
1
vote
2answers
586 views

Do vanity addresses lower the security of my key? (reduced complexity)

Do vanity addresses somehow decrease the security of my private key?