Ejemplo n.º 1
0
#lib for manual key generation

import essentials
import log

if __name__ == "__main__":
    app_log = log.log("keygen.log", "WARNING", True)
    essentials.keys_check(app_log)
    key, public_key_readable, private_key_readable, encrypted, unlocked, public_key_hashed, myaddress = essentials.keys_load(
        "privkey.der", "pubkey.der")
    print("Address:", myaddress)
Ejemplo n.º 2
0
    conn = sqlite3.connect('static/hyper.db')
conn.text_factory = str
global c
c = conn.cursor()

if full_ledger == 1:
    conn2 = sqlite3.connect('static/ledger.db')
else:
    conn2 = sqlite3.connect('static/hyper.db')
conn2.text_factory = str
global c2
c2 = conn.cursor()

app_log = log.log("gui.log", debug_level)

essentials.keys_check(app_log)
essentials.db_check(app_log)

mempool = sqlite3.connect('mempool.db', timeout=1)
mempool.text_factory = str
m = mempool.cursor()

# for local evaluation

root = Tk()
root.wm_title("Bismuth")

def help():
    pass

def backup():
Ejemplo n.º 3
0
    conn = sqlite3.connect('static/hyper.db')
conn.text_factory = str
global c
c = conn.cursor()

if full_ledger == 1:
    conn2 = sqlite3.connect('static/ledger.db')
else:
    conn2 = sqlite3.connect('static/hyper.db')
conn2.text_factory = str
global c2
c2 = conn.cursor()

app_log = log.log("gui.log", debug_level, terminal_output)

essentials.keys_check(app_log, "wallet.der")
essentials.db_check(app_log)

mempool = sqlite3.connect('mempool.db', timeout=1)
mempool.text_factory = str
m = mempool.cursor()

# for local evaluation

root = Tk()
root.wm_title("Bismuth")

def help():
    pass

def backup():