Beispiel #1
0
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():
    root.filename = filedialog.asksaveasfilename(initialdir="/", title="Select backup file", filetypes=(("gzip", "*.gz"), ))
Beispiel #2
0
from Crypto.Hash import SHA
from Crypto.Random import get_random_bytes
from Crypto.Cipher import AES, PKCS1_OAEP

from simplecrypt import encrypt, decrypt
from tkinter import filedialog, messagebox
from tkinter import *

global key
global encrypted
global unlocked

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

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

s = socks.socksocket()
s.settimeout(3)

try:
    s.connect((light_ip, int(port)))
except:
    messagebox.showinfo("Connection Error", "Wallet cannot connect to the node, check config.txt for light_ip=")
    raise

root = Tk()
root.wm_title("Bismuth Light Wallet running on {}".format(light_ip))

def alias_register(alias_desired):
    connections.send(s, "aliascheck", 10)