Skip to content

Commit

Permalink
error validation + readme updated re: valid characters
Browse files Browse the repository at this point in the history
  • Loading branch information
joeuhren committed Mar 10, 2019
1 parent 01ccb4f commit 7368f20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ Decimal Address Prefix: 0
The first argument of **1** is the address prefix for the Bitcoin network.
The 2nd argument of **BurnAddress** is the vanity keyword to insert.

**NOTE:** Only certain alphanumeric characters are valid for the address prefix and vanity keyword. The list of valid characters are: **123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz**

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).

4 changes: 2 additions & 2 deletions unspendable.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def generate (prefix_string, vanity_keyword, prefix_bytes):
break
if valid == False:
# Invalid character found
print("Error: The address prefix must only contain numers or letters.")
print("Error: Invalid characters detected in the address prefix. Valid characters are: " + b58_digits)
cont = False
break
if cont == True:
Expand All @@ -126,7 +126,7 @@ def generate (prefix_string, vanity_keyword, prefix_bytes):
break
if valid == False:
# Invalid character found
print("Error: The vanity keyword must only contain numers or letters.")
print("Error: Invalid characters detected in the vanity keyword. Valid characters are: " + b58_digits)
cont = False
break
if cont == True:
Expand Down

0 comments on commit 7368f20

Please sign in to comment.