Add groundwork

This commit is contained in:
urban
2023-08-27 09:49:45 +02:00
parent 0ae3585956
commit a2528ce87b
4 changed files with 26 additions and 0 deletions

1
Scripts/installer.sh Normal file
View File

@@ -0,0 +1 @@

1
Scripts/utils.sh Normal file
View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,23 @@
import sys
import coinaddrvalidator
def help():
print("Script to validate a bitcoin address")
print("Usage: address_validation [bitcoin_address]")
if (len(sys.argv) != 2):
print("Error: Too many argument or missing argument")
print("Use -h to display help")
exit(1)
if sys.argv[1] == "-h" or sys.argv[1] == "--help":
help()
exit(0)
address = sys.argv[1]
if coinaddrvalidator.validate('btc', address).valid == True:
print("Address valid")
exit(0)
print("Address not valid")
exit(1)

1
Tools/check_updates.py Normal file
View File

@@ -0,0 +1 @@