Plutus
Plutus copied to clipboard
Only Care about 4 database ?
that mean we care only about the database 0,1,2,3 ?
def process(private_key, public_key, address, database):
"""Accept an address and query the database. If the address is found in the database, then it is assumed to have a
balance and the wallet data is written to the hard drive. If the address is not in the database, then it is
assumed to be empty and printed to the user. This is a fast and efficient query.
Average Time: 0.0000026941 seconds
"""
if address in database[0] or
address in database[1] or
address in database[2] or
address in database[3]:
with open('plutus.txt', 'a') as file:
file.write('hex private key: ' + str(private_key) + '\n' +
'public key: ' + str(public_key) + '\n' +
'address: ' + str(address) + '\n\n')
#'WIF private key: ' + str(private_key_to_WIF(private_key)) + '\n' +
else:
print(str(address))
No... read the code between lines 122-130 in plutus.py. The database files are deserialized into 4 chunks.