def startAtm(): while user.loginAttempt < user.loginLimit: getPass = int(input(msg.m['askPass'])) if user.checkpin(getPass): print(msg.m['welcome']) m_opt = int(input(msg.m['mainMenu'])) if m_opt == 1: print(f"Your Account Balance is ${user.checkBalance()}") elif m_opt == 2: depositAmount = float(input(msg.m['dpAmt'])) user.deposit(depositAmount) elif m_opt == 3: widAmount = float(input(msg.m['wAmt'])) user.withdraw(widAmount) elif m_opt == 4: transferAmount = float(input(msg.m['transAmt'])) user.trans(transferAmsount) else: user.loginAttempt += 1 print(msg.m['acBlocked'])
#!/usr/bin/env python import user import time from sys import argv script, tries = argv tries = int(tries) #Split ACL test coin = user.deposit(True) t0 = time.time() user.testSplitACL(coin, tries) t1 = time.time() avg = (t1 - t0) / tries print "splitACL Average time = ", avg print "Communication + server time = ", user.commServerTime / tries print "proofTime =", user.proofTime / tries
#!/usr/bin/env python import user import time from sys import argv script, tries = argv tries = int(tries) #Split ACL test t0 = time.time() for i in range(0, tries): user.deposit(True) t1 = time.time() avg = (t1 - t0) / tries print "Deposit Average time = ", avg
def btnCallback(instance, value): btnName = instance.text if btnName == "Deposit": user.deposit() print('My button <%s> state is <%s>' % (instance.text, value))