def boot() -> None: ns = [[CURVE, HARDENED | 44, HARDENED | 134]] wire.add(MessageType.LiskGetPublicKey, __name__, "get_public_key", ns) wire.add(MessageType.LiskGetAddress, __name__, "get_address", ns) wire.add(MessageType.LiskSignTx, __name__, "sign_tx", ns) wire.add(MessageType.LiskSignMessage, __name__, "sign_message", ns) wire.add(MessageType.LiskVerifyMessage, __name__, "verify_message")
def boot(): ns = [ ["ed25519-keccak", HARDENED | 44, HARDENED | 43], ["ed25519-keccak", HARDENED | 44, HARDENED | 1], ] wire.add(MessageType.NEMGetAddress, __name__, "get_address", ns) wire.add(MessageType.NEMSignTx, __name__, "sign_tx", ns)
def boot(): wire.add(MessageType.MoneroGetAddress, __name__, "get_address") wire.add(MessageType.MoneroGetWatchKey, __name__, "get_watch_only") wire.add(MessageType.MoneroTransactionInitRequest, __name__, "sign_tx") wire.add(MessageType.MoneroKeyImageExportInitRequest, __name__, "key_image_sync") if __debug__ and hasattr(MessageType, "DebugMoneroDiagRequest"): wire.add(MessageType.DebugMoneroDiagRequest, __name__, "diag")
def boot() -> None: ns = [] for i in all_slip44_ids_hardened(): ns.append([CURVE, HARDENED | 44, i]) wire.add(MessageType.EthereumGetAddress, __name__, "get_address", ns) wire.add(MessageType.EthereumGetPublicKey, __name__, "get_public_key", ns) wire.add(MessageType.EthereumSignTx, __name__, "sign_tx", ns) wire.add(MessageType.EthereumSignMessage, __name__, "sign_message", ns) wire.add(MessageType.EthereumVerifyMessage, __name__, "verify_message")
def boot() -> None: # wipe storage when debug build is used on real hardware if not utils.EMULATOR: config.wipe() wire.register(MessageType.DebugLinkDecision, dispatch_DebugLinkDecision) wire.register(MessageType.DebugLinkGetState, dispatch_DebugLinkGetState) wire.add(MessageType.LoadDevice, __name__, "load_device")
def boot() -> None: # wipe storage when debug build is used on real hardware if not utils.EMULATOR: config.wipe() wire.add(MessageType.LoadDevice, __name__, "load_device") wire.add(MessageType.DebugLinkShowText, __name__, "show_text") wire.register(MessageType.DebugLinkDecision, dispatch_DebugLinkDecision) # type: ignore wire.register(MessageType.DebugLinkGetState, dispatch_DebugLinkGetState) wire.register(MessageType.DebugLinkReseedRandom, dispatch_DebugLinkReseedRandom) wire.register(MessageType.DebugLinkRecordScreen, dispatch_DebugLinkRecordScreen) wire.register(MessageType.DebugLinkEraseSdCard, dispatch_DebugLinkEraseSdCard) wire.register(MessageType.DebugLinkWatchLayout, dispatch_DebugLinkWatchLayout)
def boot(): ns = [ ["secp256k1", HARDENED | 44, HARDENED | 128], ["ed25519", HARDENED | 44, HARDENED | 128], ] wire.add(MessageType.MoneroGetAddress, __name__, "get_address", ns) wire.add(MessageType.MoneroGetWatchKey, __name__, "get_watch_only", ns) wire.add(MessageType.MoneroTransactionInitRequest, __name__, "sign_tx", ns) wire.add( MessageType.MoneroKeyImageExportInitRequest, __name__, "key_image_sync", ns ) if __debug__ and hasattr(MessageType, "DebugMoneroDiagRequest"): wire.add(MessageType.DebugMoneroDiagRequest, __name__, "diag")
def boot(iface: io.HID) -> None: wire.add( MessageType.WebAuthnListResidentCredentials, __name__, "list_resident_credentials", ) wire.add(MessageType.WebAuthnAddResidentCredential, __name__, "add_resident_credential") wire.add( MessageType.WebAuthnRemoveResidentCredential, __name__, "remove_resident_credential", ) loop.schedule(handle_reports(iface))
def boot() -> None: wire.add( MessageType.WebAuthnListResidentCredentials, __name__, "list_resident_credentials", ) wire.add(MessageType.WebAuthnAddResidentCredential, __name__, "add_resident_credential") wire.add( MessageType.WebAuthnRemoveResidentCredential, __name__, "remove_resident_credential", ) import usb loop.schedule(handle_reports(usb.iface_webauthn))
def boot(): wire.add(MessageType.CardanoGetAddress, __name__, "get_address") wire.add(MessageType.CardanoGetPublicKey, __name__, "get_public_key") wire.add(MessageType.CardanoSignTx, __name__, "sign_tx")
def boot() -> None: wire.add(MessageType.SolanaGetAddress, __name__, "get_address") wire.add(MessageType.SolanaSignTxHash, __name__, "sign_tx_hash")
def boot() -> None: wire.add(MessageType.GetPublicKey, __name__, "get_public_key") wire.add(MessageType.GetAddress, __name__, "get_address") wire.add(MessageType.GetEntropy, __name__, "get_entropy") wire.add(MessageType.SignTx, __name__, "sign_tx") wire.add(MessageType.SignMessage, __name__, "sign_message") wire.add(MessageType.VerifyMessage, __name__, "verify_message") wire.add(MessageType.SignIdentity, __name__, "sign_identity") wire.add(MessageType.GetECDHSessionKey, __name__, "get_ecdh_session_key") wire.add(MessageType.CipherKeyValue, __name__, "cipher_key_value")
def boot() -> None: wire.add(MessageType.StellarGetAddress, __name__, "get_address") wire.add(MessageType.StellarSignTx, __name__, "sign_tx")
def boot(): ns = [[CURVE, HARDENED | 44, HARDENED | 43], [CURVE, HARDENED | 44, HARDENED | 1]] wire.add(MessageType.NEMGetAddress, __name__, "get_address", ns) wire.add(MessageType.NEMSignTx, __name__, "sign_tx", ns)
def boot(): ns = [[CURVE, HARDENED | 44, HARDENED | 148]] wire.add(MessageType.StellarGetAddress, __name__, "get_address", ns) wire.add(MessageType.StellarSignTx, __name__, "sign_tx", ns)
def boot(): ns = [[CURVE, HARDENED | 44, HARDENED | 1729]] wire.add(MessageType.TezosGetAddress, __name__, "get_address", ns) wire.add(MessageType.TezosSignTx, __name__, "sign_tx", ns) wire.add(MessageType.TezosGetPublicKey, __name__, "get_public_key", ns)
def boot(): ns = [["secp256k1", HARDENED | 44, HARDENED | 60]] wire.add(MessageType.EthereumGetAddress, __name__, "get_address", ns) wire.add(MessageType.EthereumSignTx, __name__, "sign_tx", ns) wire.add(MessageType.EthereumSignMessage, __name__, "sign_message", ns) wire.add(MessageType.EthereumVerifyMessage, __name__, "verify_message")
def boot() -> None: ns = [[CURVE, HARDENED | 44, HARDENED | 144]] wire.add(MessageType.RippleGetAddress, __name__, "get_address", ns) wire.add(MessageType.RippleSignTx, __name__, "sign_tx", ns)
def boot() -> None: wire.add(MessageType.ResetDevice, __name__, "reset_device") wire.add(MessageType.BackupDevice, __name__, "backup_device") wire.add(MessageType.WipeDevice, __name__, "wipe_device") wire.add(MessageType.RecoveryDevice, __name__, "recovery_device") wire.add(MessageType.ApplySettings, __name__, "apply_settings") wire.add(MessageType.ApplyFlags, __name__, "apply_flags") wire.add(MessageType.ChangePin, __name__, "change_pin") wire.add(MessageType.SetU2FCounter, __name__, "set_u2f_counter") wire.add(MessageType.GetNextU2FCounter, __name__, "get_next_u2f_counter") wire.add(MessageType.SdProtect, __name__, "sd_protect")
def boot() -> None: wire.add(MessageType.AuthorizeCoinJoin, __name__, "authorize_coinjoin") wire.add(MessageType.GetPublicKey, __name__, "get_public_key") wire.add(MessageType.GetAddress, __name__, "get_address") wire.add(MessageType.GetOwnershipId, __name__, "get_ownership_id") wire.add(MessageType.GetOwnershipProof, __name__, "get_ownership_proof") wire.add(MessageType.SignTx, __name__, "sign_tx") wire.add(MessageType.SignMessage, __name__, "sign_message") wire.add(MessageType.VerifyMessage, __name__, "verify_message")
def boot() -> None: wire.add(MessageType.EthereumGetAddress, __name__, "get_address") wire.add(MessageType.EthereumGetPublicKey, __name__, "get_public_key") wire.add(MessageType.EthereumSignTx, __name__, "sign_tx") wire.add(MessageType.EthereumSignMessage, __name__, "sign_message") wire.add(MessageType.EthereumVerifyMessage, __name__, "verify_message")
def boot(): ns = [[CURVE, HARDENED | 44, HARDENED | 194]] wire.add(MessageType.EosGetPublicKey, __name__, "get_public_key", ns) wire.add(MessageType.EosSignTx, __name__, "sign_tx", ns)
def boot(): wire.add(MessageType.LiskGetPublicKey, __name__, "get_public_key") wire.add(MessageType.LiskGetAddress, __name__, "get_address") wire.add(MessageType.LiskSignMessage, __name__, "sign_message") wire.add(MessageType.LiskVerifyMessage, __name__, "verify_message") wire.add(MessageType.LiskSignTx, __name__, "sign_tx")
def boot() -> None: wire.add(MessageType.GetEntropy, __name__, "get_entropy") wire.add(MessageType.SignIdentity, __name__, "sign_identity") wire.add(MessageType.GetECDHSessionKey, __name__, "get_ecdh_session_key") wire.add(MessageType.CipherKeyValue, __name__, "cipher_key_value")
def boot() -> None: wire.add(MessageType.EosGetPublicKey, __name__, "get_public_key") wire.add(MessageType.EosSignTx, __name__, "sign_tx")
def boot(): wire.add(MessageType.EthereumGetAddress, __name__, "get_address") wire.add(MessageType.EthereumSignTx, __name__, "sign_tx") wire.add(MessageType.EthereumSignMessage, __name__, "sign_message") wire.add(MessageType.EthereumVerifyMessage, __name__, "verify_message")
def boot(): ns = [[CURVE, HARDENED | 44, HARDENED | 128]] wire.add(MessageType.MoneroGetAddress, __name__, "get_address", ns) wire.add(MessageType.MoneroGetWatchKey, __name__, "get_watch_only", ns) wire.add(MessageType.MoneroTransactionInitRequest, __name__, "sign_tx", ns) wire.add(MessageType.MoneroKeyImageExportInitRequest, __name__, "key_image_sync", ns) wire.add(MessageType.MoneroGetTxKeyRequest, __name__, "get_tx_keys", ns) wire.add(MessageType.MoneroLiveRefreshStartRequest, __name__, "live_refresh", ns) if __debug__ and hasattr(MessageType, "DebugMoneroDiagRequest"): wire.add(MessageType.DebugMoneroDiagRequest, __name__, "diag")
def boot(): ns = [["secp256k1", HARDENED | 44, HARDENED | 144]] wire.add(MessageType.RippleGetAddress, __name__, "get_address", ns) wire.add(MessageType.RippleSignTx, __name__, "sign_tx", ns)
def boot() -> None: # only enable LoadDevice in debug builds if __debug__: wire.add(MessageType.LoadDevice, __name__, "load_device") wire.add(MessageType.ResetDevice, __name__, "reset_device") wire.add(MessageType.BackupDevice, __name__, "backup_device") wire.add(MessageType.WipeDevice, __name__, "wipe_device") wire.add(MessageType.RecoveryDevice, __name__, "recovery_device") wire.add(MessageType.ApplySettings, __name__, "apply_settings") wire.add(MessageType.ApplyFlags, __name__, "apply_flags") wire.add(MessageType.ChangePin, __name__, "change_pin") wire.add(MessageType.SetU2FCounter, __name__, "set_u2f_counter") wire.add(MessageType.SdProtect, __name__, "sd_protect")
def boot() -> None: ns = [[CURVE, HARDENED | 44, HARDENED | 360], [CURVE, HARDENED | 44, HARDENED | 1]] wire.add(MessageType.VsysGetAddress, __name__, "get_address", ns) wire.add(MessageType.VsysSignTx, __name__, "sign_tx", ns) wire.add(MessageType.VsysGetPublicKey, __name__, "get_public_key", ns)