Can bitcoin address be longer than 35?
Does longer address indicate much lower chance of collision and/or higher security?
Can bitcoin address be longer than 35?
Does longer address indicate much lower chance of collision and/or higher security?
According to the Bitcoin Wiki:
A Bitcoin address, or simply address, is an identifier of 26-35 alphanumeric characters
And:
Some Bitcoin addresses can be shorter than 34 characters (as few as 26) and still be valid. A significant percentage of Bitcoin addresses are only 33 characters, and some addresses may be even shorter. Every Bitcoin address stands for a number. These shorter addresses are valid simply because they stand for numbers that happen to start with zeroes, and when the zeroes are omitted, the encoded address gets shorter.
So no, the length does not imply higher/lower security.
Bitcoin address is only a human-readable representation of transaction output scripts. Some kind of scripts do not have standard representations/addresses, but we can create our own "addresses" for them. For example, for any script we can create an "address" by encoding the script in hex form.
These "addresses" can be shorter than 26 symbols or longer than 35
Though it is true that length does not strictly imply higher/lower security, Segwit addresses can be 14 - 74 with some exceptions (see BIP173)
For Version 0 addresses (
bc1p
prefix) it must be 42 or 62 charactersThere is no similar mention of character limits in BIP341 for Version 1 addresses (
– oz21m Nov 22 '22 at 17:17bc1q
prefix)