Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: wsxdrfv on May 17, 2018, 12:33:41 PM



Title: Address's total length is all the same?
Post by: wsxdrfv on May 17, 2018, 12:33:41 PM
I counted bitcoin address length, it is 34.

Is this all the same always?

And how about other coin's case?

If same coin, address's length is always same?


Title: Re: Address's total length is all the same?
Post by: 0xuser on May 17, 2018, 12:44:32 PM
NOPE. It's 26-35.

See the official bitcoin wiki - Address (https://en.bitcoin.it/wiki/Address).


Title: Re: Address's total length is all the same?
Post by: bob123 on May 17, 2018, 12:52:39 PM
I counted bitcoin address length, it is 34.

You maybe counted correct.



Is this all the same always?

No, the length from 'legacy' addresses (starting with 1.. or 3..) varys from 27 to 34 characters.
The length of new bech32 format addresses (starting with bc1..) is at ~ 42 chars.



And how about other coin's case?

This depends on the coin. Usually they are different.
Depends on what is defined within the protocol..



If same coin, address's length is always same?

See above.


Title: Re: Address's total length is all the same?
Post by: Xynerise on May 17, 2018, 01:22:33 PM
I counted bitcoin address length, it is 34.

Is this all the same always?
No, they can be as short as 26 characters eg
Code:
11111111111111111111HeBAGj
to as long as 34 for P2PKH addresses (addresses that start with '1')
P2SH (testnet) addresses can have up to 35 characters IIRC.
Bech32 segwit addresses can be as low as ~14 characters long eg
Code:
BC1SW50QA3JX3S
to as long as 74 characters.
Quote
And how about other coin's case?
It depends on the encoding being used by the coin to generate addresses.

Quote
If same coin, address's length is always same?
No, they have the same RANGE but they're not always the same length.
The encoding provides the range of values that generates a valid address.

In some cases however, the address lengths are always the same because of the way addresses are derived.
For example Ethereum addresses are always 40 characters long (plus the 0x prefix to give 42 chars) because it's the last 20 bytes of the SHA3 hash of the  public key controlling the address.


Title: Re: Address's total length is all the same?
Post by: xIIImaL on May 17, 2018, 05:46:55 PM
As I searched on Google, I see the xynerise has given seems perfect answer bro. As I we can see the 32 to 35 characters has there in every bitcoin address but not sure about legacy address and etc mate.
If there is address shrinking option we do for websites link in future. Then we can see bitcoin transaction more anonymous mate. LOL. ;) ;)


Title: Re: Address's total length is all the same?
Post by: vakie1 on May 21, 2018, 05:00:47 AM
No, they're not always the same length  ;D