mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
build-wine/deterministic.spec: add Coldcard plugin and ckcc-protocol dependancy Require version 0.7.2 of ckcc-protocol (window fixes) Rework import paths to new standards Updated icons New minimum version, for latest PSBT constants Upgrade to final PSBT (BIP 174) standard encoding Remove log noise Show bootloader version number as well Handle case where libraries are missing better Remove noise about missing packages, for rest of world Add reference to ckcc-protocol module/data Remove dead code Beef up the README more Slightly better looking Add version numbers and upgrade firmware feature Split out DFU support into own file First pass at adding Coinkite Coldcard hardware wallet to Electrum
47 lines
1.1 KiB
Python
47 lines
1.1 KiB
Python
from electrum.plugin import hook
|
|
from .coldcard import ColdcardPlugin
|
|
from electrum.util import print_msg, print_error, raw_input, print_stderr
|
|
|
|
class ColdcardCmdLineHandler:
|
|
|
|
def get_passphrase(self, msg, confirm):
|
|
raise NotImplementedError
|
|
|
|
def get_pin(self, msg):
|
|
raise NotImplementedError
|
|
|
|
def prompt_auth(self, msg):
|
|
raise NotImplementedError
|
|
|
|
def yes_no_question(self, msg):
|
|
print_msg(msg)
|
|
return raw_input() in 'yY'
|
|
|
|
def stop(self):
|
|
pass
|
|
|
|
def show_message(self, msg, on_cancel=None):
|
|
print_stderr(msg)
|
|
|
|
def show_error(self, msg, blocking=False):
|
|
print_error(msg)
|
|
|
|
def update_status(self, b):
|
|
print_error('hw device status', b)
|
|
|
|
def finished(self):
|
|
pass
|
|
|
|
class Plugin(ColdcardPlugin):
|
|
handler = ColdcardCmdLineHandler()
|
|
|
|
@hook
|
|
def init_keystore(self, keystore):
|
|
if not isinstance(keystore, self.keystore_class):
|
|
return
|
|
keystore.handler = self.handler
|
|
|
|
def create_handler(self, window):
|
|
return self.handler
|
|
|
|
# EOF
|