Author

Topic: Address's total length is all the same? (Read 257 times)

newbie
Activity: 84
Merit: 0
May 21, 2018, 12:00:47 AM
#6
No, they're not always the same length  Grin
legendary
Activity: 1372
Merit: 1005
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. Wink Wink
sr. member
Activity: 322
Merit: 363
39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD
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.
legendary
Activity: 1624
Merit: 2481
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.
newbie
Activity: 6
Merit: 0
NOPE. It's 26-35.

See the official bitcoin wiki - Address.
jr. member
Activity: 413
Merit: 5
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?
Jump to: