def __init__(self, gui): self.target_host = 'labelectrum.herokuapp.com' BasePlugin.__init__( self, gui, 'labels', _('Label Sync'), _('This plugin can sync your labels accross multiple Electrum installs by using a remote database to save your data. Labels, \ transactions and addresses are all sent and stored encrypted on the remote server. This code might increase the load of your wallet with a few microseconds as it will sync labels on each startup.\n\n\ To get started visit http://labelectrum.herokuapp.com/ to sign up for an account.' )) self.wallet = gui.wallet self.gui = gui self.config = gui.config self.labels = self.wallet.labels self.transactions = self.wallet.transactions self.encode_password = hashlib.sha1( self.config.get("master_public_key")).digest().encode('hex')[:32] self.wallet_id = hashlib.sha256( str(self.config.get("master_public_key"))).digest().encode('hex') addresses = [] for k, account in self.wallet.accounts.items(): for address in account[0]: addresses.append(address) self.addresses = addresses
def __init__(self, gui): self.target_host = "labelectrum.herokuapp.com" BasePlugin.__init__( self, gui, "labels", _("Label Sync"), _( "This plugin can sync your labels accross multiple Electrum installs by using a remote database to save your data. Labels are not encrypted, \ transactions and addresses are however. This code might increase the load of your wallet with a few micoseconds as it will sync labels on each startup.\n\n\ To get started visit http://labelectrum.herokuapp.com/ to sign up for an account." ), ) self.wallet = gui.wallet self.gui = gui self.config = gui.config self.labels = self.wallet.labels self.transactions = self.wallet.transactions self.encode_password = hashlib.sha1(self.config.get("master_public_key")).digest().encode("hex")[:32] self.wallet_id = hashlib.sha256(str(self.config.get("master_public_key"))).digest().encode("hex") addresses = [] for k, account in self.wallet.accounts.items(): for address in account[0]: addresses.append(address) self.addresses = addresses
def __init__(self, gui): BasePlugin.__init__( self, gui, 'virtualkeyboard', 'Virtual Keyboard', _("Add an optional, mouse keyboard to the password dialog.\nWarning: do not use this if it makes you pick a weaker password." )) self.vkb = None self.vkb_index = 0
def __init__(self, gui): BasePlugin.__init__( self, gui, 'pointofsale', 'Point of Sale', _('Show QR code window and amounts requested for each address. Add menu item to request amount.' )) self.qr_window = None self.requested_amounts = self.config.get('requested_amounts', {}) self.merchant_name = self.config.get('merchant_name', 'Invoice')
def __init__(self, gui): BasePlugin.__init__( self, gui, "virtualkeyboard", "Virtual Keyboard", "%s\n%s" % ( _("Add an optional, mouse keyboard to the password dialog."), _("Warning: do not use this if it makes you pick a weaker password."), ), ) self.vkb = None self.vkb_index = 0
def __init__(self, gui): self.target_host = 'labelectrum.herokuapp.com' BasePlugin.__init__(self, gui, 'labels', _('Label Sync'), '%s\n\n%s%s%s' % (_("This plugin can sync your labels across multiple Electrum installs by using a remote database to save your data. Labels, transactions and addresses are all sent and stored encrypted on the remote server. This code might increase the load of your wallet with a few microseconds as it will sync labels on each startup."), _("To get started visit"), " http://labelectrum.herokuapp.com/", _(" to sign up for an account."))) self.wallet = gui.wallet self.gui = gui self.config = gui.config self.labels = self.wallet.labels self.transactions = self.wallet.transactions self.encode_password = hashlib.sha1(self.config.get("master_public_key")).digest().encode('hex')[:32] self.wallet_id = hashlib.sha256(str(self.config.get("master_public_key"))).digest().encode('hex') addresses = [] for k, account in self.wallet.accounts.items(): for address in account[0]: addresses.append(address) self.addresses = addresses
def __init__(self, gui): BasePlugin.__init__(self, gui, 'qrscans', 'QR scans', "QR Scans.\nInstall the zbar package to enable this plugin") self._is_available = self._init()
def __init__(self, gui): BasePlugin.__init__( self, gui, 'qrscans', 'QR scans', "QR Scans.\nInstall the zbar package (http://zbar.sourceforge.net/download.html) to enable this plugin" ) self._is_available = self._init()
def __init__(self, gui): BasePlugin.__init__(self, gui, 'qrscans', 'QR scans', "QR Scans.\nInstall the zbar package (http://zbar.sourceforge.net/download.html) to enable this plugin") self._is_available = self._init()
def __init__(self, gui): BasePlugin.__init__(self, gui, 'virtualkeyboard', 'Virtual Keyboard', _("Add an optional, mouse keyboard to the password dialog.\nWarning: do not use this if it makes you pick a weaker password.")) self.vkb = None self.vkb_index = 0
def __init__(self, gui): BasePlugin.__init__(self, gui, 'pointofsale', 'Point of Sale', _('Show QR code window and amounts requested for each address. Add menu item to request amount.') ) self.qr_window = None self.requested_amounts = self.config.get('requested_amounts',{}) self.merchant_name = self.config.get('merchant_name', 'Invoice')
def __init__(self, gui): BasePlugin.__init__(self, gui, 'aliases', 'Aliases', _('Retrieve aliases using http.')) self.aliases = self.config.get('aliases', {}) # aliases for addresses self.authorities = self.config.get('authorities', {}) # trusted addresses self.receipts = self.config.get('receipts',{}) # signed URIs