Skip to content

Commit 7368f20

Browse files
committed
error validation + readme updated re: valid characters
1 parent 01ccb4f commit 7368f20

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ Decimal Address Prefix: 0
1717
The first argument of **1** is the address prefix for the Bitcoin network.
1818
The 2nd argument of **BurnAddress** is the vanity keyword to insert.
1919

20+
**NOTE:** Only certain alphanumeric characters are valid for the address prefix and vanity keyword. The list of valid characters are: **123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz**
21+
2022
The actual address is **1BurnAddressXXXXXXXXXXXXXXXXV7cPS6** and as an added check, the decimal address prefix of **0** is also displayed to eliminate guessing. The decimal address prefix must match the 2nd bit in the **PUBKEY_ADDRESS** of the coin's source code or else the address will not be valid. [Click here to view the PUBKEY_ADDRESS for Bitcoin's mainnet](https://github.com/bitcoin/bitcoin/blob/257f750cd986641afe04316ed0b22b646b56b60b/src/chainparams.cpp#L132). If you are not able to generate a valid address for your network it is most likely because the decimal address prefix doesn't match. You may have to change the vanity keyword to something that starts with a different number or letter to find one that matches your network's decimal address prefix. [Click here for more information about how the address prefixes work](https://en.bitcoin.it/wiki/List_of_address_prefixes).
23+

unspendable.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def generate (prefix_string, vanity_keyword, prefix_bytes):
112112
break
113113
if valid == False:
114114
# Invalid character found
115-
print("Error: The address prefix must only contain numers or letters.")
115+
print("Error: Invalid characters detected in the address prefix. Valid characters are: " + b58_digits)
116116
cont = False
117117
break
118118
if cont == True:
@@ -126,7 +126,7 @@ def generate (prefix_string, vanity_keyword, prefix_bytes):
126126
break
127127
if valid == False:
128128
# Invalid character found
129-
print("Error: The vanity keyword must only contain numers or letters.")
129+
print("Error: Invalid characters detected in the vanity keyword. Valid characters are: " + b58_digits)
130130
cont = False
131131
break
132132
if cont == True:

0 commit comments

Comments
 (0)