Author

Topic: What is the longest possible Bitcoin address? Are they all the same length? (Read 7320 times)

hero member
Activity: 1924
Merit: 538
because an internet site asks me to use a 34-character format.

thank you for response.

If the website is stripping off the whitespace, and isn't aware that bitcoin addresses aren't all 34 characters, then I'd avoid that website.  They clearly don't understand what they are doing well enough to do it properly and you are likely to have lots of problems in the future with things they don't do well.

correct. thank you very much indeed.
legendary
Activity: 4228
Merit: 1313
because an internet site asks me to use a 34-character format.

thank you for response.

If the website is stripping off the whitespace, and isn't aware that bitcoin addresses aren't all 34 characters, then I'd avoid that website.  They clearly don't understand what they are doing well enough to do it properly and you are likely to have lots of problems in the future with things they don't do well.

Danny is correct.  If they don't have something that basic down, you should avoid them.

HOWEVER, if you absolutely have to use them, you can generate some new addresses and look for one that matches the 34 characters they are looking for.
legendary
Activity: 3472
Merit: 4801
because an internet site asks me to use a 34-character format.

thank you for response.

If the website is stripping off the whitespace, and isn't aware that bitcoin addresses aren't all 34 characters, then I'd avoid that website.  They clearly don't understand what they are doing well enough to do it properly and you are likely to have lots of problems in the future with things they don't do well.
hero member
Activity: 1924
Merit: 538
because an internet site asks me to use a 34-character format.

thank you for response.
legendary
Activity: 3472
Merit: 4801
is it possible to transform an address with 33 characters to the same with 34 characters?

Yes.

if yes, what is the modification ?

You can either add a space character at the beginning of the address, or (if you prefer) you can add a space character at the end of the address.

Why would you want to do this though?
hero member
Activity: 1924
Merit: 538
is it possible to transform an address with 33 characters to the same with 34 characters ? if yes, what is the modification ?
sr. member
Activity: 280
Merit: 252
From the Wiki:
Quote
Addresses can contain all alphanumeric characters except 0, O, I, and l. Normal addresses currently always start with 1, though this might change in a future version. Testnet addresses usually start with m or n. Mainline addresses can be 25-34 characters in length, and testnet addresses can be 26-34 characters in length. Most addresses are 33 or 34 characters long, though.

You'll probably want to store them in a VARCHAR. Although, if you really want to save space, you can Base58 decode them and store them in binary without the checksum using only 20 bytes.

Hehe, thank you for the suggestions.

Thankfully my OCD isn't THAT out of whack Wink

Take care,
full member
Activity: 134
Merit: 102
From the Wiki:
Quote
Addresses can contain all alphanumeric characters except 0, O, I, and l. Normal addresses currently always start with 1, though this might change in a future version. Testnet addresses usually start with m or n. Mainline addresses can be 25-34 characters in length, and testnet addresses can be 26-34 characters in length. Most addresses are 33 or 34 characters long, though.

You'll probably want to store them in a VARCHAR. Although, if you really want to save space, you can Base58 decode them and store them in binary without the checksum using only 20 bytes.
sr. member
Activity: 280
Merit: 252
I am working on creating a mysql database and don't want to waste any extra storage space.

So what should I make an entry for a bitcoin address?

CHAR X length? (is the address consistently one length?)

Or VARCHAR X length? (does the address change in length from user to user?)
Jump to: