diff --git a/src/alice.png b/src/alice.png new file mode 100644 index 00000000..3f6c6a92 Binary files /dev/null and b/src/alice.png differ diff --git a/src/bitmessagekivy/uikivysignaler.py b/src/bitmessagekivy/uikivysignaler.py index 41e532fe..82d94a14 100644 --- a/src/bitmessagekivy/uikivysignaler.py +++ b/src/bitmessagekivy/uikivysignaler.py @@ -5,6 +5,7 @@ import queues from semaphores import kivyuisignaler from helper_sql import SqlBulkExecute, sqlExecute, sqlQuery, sqlStoredProcedure + class UIkivySignaler(Thread): def run(self): @@ -12,7 +13,6 @@ class UIkivySignaler(Thread): while state.shutdown == 0: try: command, data = queues.UISignalQueue.get() - print("ssssssseeeeeeeeeeeeeeeeeeeeeeeeeewuhatsacomment.................", command) if command == 'writeNewAddressToTable': label, address, streamNumber = data state.kivyapp.variable_1.append(address) @@ -20,4 +20,4 @@ class UIkivySignaler(Thread): state.kivyapp.obj_1.refreshs() except Exception as e: - print(e) \ No newline at end of file + print(e) diff --git a/src/bob.png b/src/bob.png new file mode 100644 index 00000000..74aeb99e Binary files /dev/null and b/src/bob.png differ diff --git a/src/class_singleWorker.py b/src/class_singleWorker.py index 6686e2c4..a7e19762 100644 --- a/src/class_singleWorker.py +++ b/src/class_singleWorker.py @@ -50,7 +50,6 @@ class singleWorker(StoppableThread): def __init__(self): super(singleWorker, self).__init__(name="singleWorker") proofofwork.init() - print("I am in single worker 52.....................................................") def stopThread(self): """Signal through the queue that the thread should be stopped""" diff --git a/src/dave.png b/src/dave.png new file mode 100644 index 00000000..e8d7bd0b Binary files /dev/null and b/src/dave.png differ diff --git a/src/debug.py b/src/debug.py index 082497d2..8393bb50 100644 --- a/src/debug.py +++ b/src/debug.py @@ -32,7 +32,6 @@ import helper_startup import state helper_startup.loadConfig() -print("333333333333333333333333333333333333333333333333333333333333333333333333333333333") # Now can be overriden from a config file, which uses standard python # logging.config.fileConfig interface # examples are here: diff --git a/src/depends.py b/src/depends.py index 5a8b9a74..dc35b529 100755 --- a/src/depends.py +++ b/src/depends.py @@ -231,7 +231,6 @@ def check_sqlite(): def check_openssl(): - print(state.kivy, "state.kivystate.kivystate.kivystate.kivystate.kivystate.kivystate.kivystate.kivy") """Do openssl dependency check. Here we are checking for openssl with its all dependent libraries @@ -250,7 +249,6 @@ def check_openssl(): import os.path paths.insert(0, os.path.join(sys._MEIPASS, 'libeay32.dll')) elif state.kivy: - print("kivykivykivykivykivykivykivy...........................") return True else: paths = ['libcrypto.so', 'libcrypto.so.1.0.0'] @@ -283,7 +281,6 @@ def check_openssl(): logger.info('Checking OpenSSL at %s', path) try: library = ctypes.CDLL(path) - print("I am loading here in depends file................................................................") except OSError: continue logger.info('OpenSSL Name: %s', library._name) diff --git a/src/eve.png b/src/eve.png new file mode 100644 index 00000000..e11ff6f5 Binary files /dev/null and b/src/eve.png differ diff --git a/src/helper_startup.py b/src/helper_startup.py index 6b60bdd2..5d1614c7 100644 --- a/src/helper_startup.py +++ b/src/helper_startup.py @@ -44,7 +44,6 @@ def _loadTrustedPeer(): def loadConfig(): """Load the config""" config = BMConfigParser() - print("I am coming in loadConfig now................................................................") if state.appdata: config.read(state.appdata + 'keys.dat') diff --git a/src/image.svg b/src/image.svg new file mode 100644 index 00000000..bef2b802 Binary files /dev/null and b/src/image.svg differ diff --git a/src/images/black_cross.png b/src/images/black_cross.png new file mode 100644 index 00000000..a71b611b Binary files /dev/null and b/src/images/black_cross.png differ diff --git a/src/images/left_arrow.png b/src/images/left_arrow.png new file mode 100644 index 00000000..0f01c425 Binary files /dev/null and b/src/images/left_arrow.png differ diff --git a/src/images/red.png b/src/images/red.png new file mode 100644 index 00000000..2570e26a Binary files /dev/null and b/src/images/red.png differ diff --git a/src/images/search_mail.png b/src/images/search_mail.png new file mode 100644 index 00000000..7b38e9b4 Binary files /dev/null and b/src/images/search_mail.png differ diff --git a/src/images/text_images/!.png b/src/images/text_images/!.png new file mode 100644 index 00000000..bac2f246 Binary files /dev/null and b/src/images/text_images/!.png differ diff --git a/src/images/text_images/0.png b/src/images/text_images/0.png new file mode 100644 index 00000000..2b8b63e3 Binary files /dev/null and b/src/images/text_images/0.png differ diff --git a/src/images/text_images/1.png b/src/images/text_images/1.png new file mode 100644 index 00000000..3918f6d3 Binary files /dev/null and b/src/images/text_images/1.png differ diff --git a/src/images/text_images/2.png b/src/images/text_images/2.png new file mode 100644 index 00000000..0cf202e9 Binary files /dev/null and b/src/images/text_images/2.png differ diff --git a/src/images/text_images/3.png b/src/images/text_images/3.png new file mode 100644 index 00000000..f9d612dd Binary files /dev/null and b/src/images/text_images/3.png differ diff --git a/src/images/text_images/4.png b/src/images/text_images/4.png new file mode 100644 index 00000000..f2ab33e1 Binary files /dev/null and b/src/images/text_images/4.png differ diff --git a/src/images/text_images/5.png b/src/images/text_images/5.png new file mode 100644 index 00000000..09d6e56e Binary files /dev/null and b/src/images/text_images/5.png differ diff --git a/src/images/text_images/6.png b/src/images/text_images/6.png new file mode 100644 index 00000000..e385a954 Binary files /dev/null and b/src/images/text_images/6.png differ diff --git a/src/images/text_images/7.png b/src/images/text_images/7.png new file mode 100644 index 00000000..55fc4f77 Binary files /dev/null and b/src/images/text_images/7.png differ diff --git a/src/images/text_images/8.png b/src/images/text_images/8.png new file mode 100644 index 00000000..2a3fa76f Binary files /dev/null and b/src/images/text_images/8.png differ diff --git a/src/images/text_images/9.png b/src/images/text_images/9.png new file mode 100644 index 00000000..81ad9084 Binary files /dev/null and b/src/images/text_images/9.png differ diff --git a/src/images/transparent.png b/src/images/transparent.png new file mode 100644 index 00000000..26529139 Binary files /dev/null and b/src/images/transparent.png differ diff --git a/src/images/white.png b/src/images/white.png new file mode 100644 index 00000000..0542f499 Binary files /dev/null and b/src/images/white.png differ diff --git a/src/network/networkthread.py b/src/network/networkthread.py index 2ea8fcd7..2a22367f 100644 --- a/src/network/networkthread.py +++ b/src/network/networkthread.py @@ -19,9 +19,7 @@ class BMNetworkThread(StoppableThread): def run(self): try: while not self._stopped and state.shutdown == 0: - print("I am running in run method which calls a loop for BMConnectionPool line19..................................") BMConnectionPool().loop() - print("I am running in run method which calls a loop for BMConnectionPool line 21..................................") except Exception as e: excQueue.put((self.name, e)) raise diff --git a/src/paths.py b/src/paths.py index 86190363..63e92704 100644 --- a/src/paths.py +++ b/src/paths.py @@ -24,7 +24,6 @@ def lookupExeFolder(): def lookupAppdataFolder(): - print("HIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII", platform) import traceback print(traceback.print_tb) APPNAME = "PyBitmessage" @@ -45,7 +44,6 @@ def lookupAppdataFolder(): elif platform == 'android': # dataFolder = path.join(os.path.dirname(os.path.abspath("__file__")), "PyBitmessage") + '/' dataFolder = path.join('/sdcard/', 'DCIM/', APPNAME) + '/' - print("YOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", dataFolder) elif 'win32' in sys.platform or 'win64' in sys.platform: dataFolder = path.join(environ['APPDATA'].decode(sys.getfilesystemencoding(), 'ignore'), APPNAME) + path.sep diff --git a/src/proofofwork.py b/src/proofofwork.py index 5a36edf3..6fefb196 100644 --- a/src/proofofwork.py +++ b/src/proofofwork.py @@ -230,7 +230,6 @@ def buildCPoW(): call(["make", "-C", os.path.join(paths.codePath(), "bitmsghash"), '-f', 'Makefile.bsd']) else: # GNU make - print("I am in buildCPoW hurray.......................................", os.path.join(paths.codePath(), "bitmsghash")) call(["make", "-C", os.path.join(paths.codePath(), "bitmsghash")]) if os.path.exists(os.path.join(paths.codePath(), "bitmsghash", "bitmsghash.so")): init() @@ -322,12 +321,10 @@ def init(): logger.error("C PoW test fail.", exc_info=True) bso = None elif platform == "android": - print(sys.platform) try: bso = ctypes.CDLL('libbitmsghash.so') except Exception as e: bso = None - print(e) else: try: diff --git a/src/pyelliptic/openssl.py b/src/pyelliptic/openssl.py index 44eddfca..ac3996b1 100644 --- a/src/pyelliptic/openssl.py +++ b/src/pyelliptic/openssl.py @@ -72,9 +72,7 @@ class _OpenSSL: """ Build the wrapper """ - print("I am on openssl ctypes loading...............................................") self._lib = ctypes.CDLL(library) - print(library, "library12library12library12library12library12library12library12") self._version, self._hexversion, self._cflags = get_version(self._lib) self._libreSSL = self._version.startswith("LibreSSL") @@ -687,7 +685,6 @@ def loadOpenSSL(): libdir.append(find_library('libeay32')) for library in libdir: try: - print(library, "librarylibrarylibrarylibrarylibrarylibrarylibrarylibrarylibrarylibrarylibrary") OpenSSL = _OpenSSL(library) return except: diff --git a/src/shared.py b/src/shared.py index b197b631..dacd4a5f 100644 --- a/src/shared.py +++ b/src/shared.py @@ -116,30 +116,22 @@ def decodeWalletImportFormat(WIFstring): def reloadMyAddressHashes(): logger.debug('reloading keys from keys.dat file') - print("SHARED 146 begins.....................................................................") myECCryptorObjects.clear() myAddressesByHash.clear() myAddressesByTag.clear() # myPrivateKeys.clear() - print("SHARED 152 begins.....................................................................") keyfileSecure = checkSensitiveFilePermissions(state.appdata + 'keys.dat') hasEnabledKeys = False - print("SHARED 156 begins.....................................................................") - print(BMConfigParser().addresses()) for addressInKeysFile in BMConfigParser().addresses(): - print("SHARED 158 begins.....................................................................") isEnabled = BMConfigParser().getboolean(addressInKeysFile, 'enabled') - print("SHARED 160 begins.....................................................................") if isEnabled: - print("SHARED 161 begins.....................................................................") hasEnabledKeys = True # status _, addressVersionNumber, streamNumber, hash = \ decodeAddress(addressInKeysFile) if addressVersionNumber in (2, 3, 4): - print("SHARED 166 begins.....................................................................") # Returns a simple 32 bytes of information encoded # in 64 Hex characters, or null if there was an error. privEncryptionKey = hexlify(decodeWalletImportFormat( @@ -158,17 +150,14 @@ def reloadMyAddressHashes(): myAddressesByTag[tag] = addressInKeysFile else: - print("SHARED 185 begins.....................................................................") logger.error( 'Error in reloadMyAddressHashes: Can\'t handle' ' address versions other than 2, 3, or 4.\n' ) - print("SHARED 187 begins.....................................................................") if not platform == "android": if not keyfileSecure: fixSensitiveFilePermissions(state.appdata + 'keys.dat', hasEnabledKeys) - print("SHARED 196 begins.....................................................................") def reloadBroadcastSendersForWhichImWatching(): diff --git a/src/suravata.py b/src/suravata.py new file mode 100644 index 00000000..18541989 --- /dev/null +++ b/src/suravata.py @@ -0,0 +1,32 @@ +#!/usr/bin/env python +# Import the libraries. +import pdb;pdb.set_trace() +import pydenticon100000000000000000000000 +import hashlib +# Set-up some test data. +users = ["alice", "bob", "eve", "dave"] +# Set-up a list of foreground colours (taken from Sigil). +foreground = ["rgb(45,79,255)", + "rgb(254,180,44)", + "rgb(226,121,234)", + "rgb(30,179,253)", + "rgb(232,77,65)", + "rgb(49,203,115)", + "rgb(141,69,170)"] +# Set-up a background colour (taken from Sigil). +background = "rgb(224,224,224)" +# Set-up the padding (top, bottom, left, right) in pixels. +padding = (20, 20, 20, 20) +# Instantiate a generator that will create 5x5 block identicons using SHA1 +# digest. +generator = pydenticon.Generator(5, 5, digest=hashlib.sha1, foreground=foreground, background=background) + +# identicon_ascii = generator.generate("john.doe@example.com", 200, 200, +# output_format="ascii") + +# print identicon_ascii +for user in users: + identicon = generator.generate(user, 200, 200, padding=padding, output_format="png") + filename = user + ".png" + with open(filename, "wb") as f: + f.write(identicon) \ No newline at end of file