What changed, and why it matters
This commit is a large but purely cosmetic rename: every occurrence of the internal feature/capability name 'N1W1' is changed to 'K1N1' across build files, protocol definitions, generated code, translations, tests, and documentation. No security behavior is altered.
No security action needed. Treat as a normal refactoring commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff is a global identifier rename (N1W1 → K1N1). It touches 54 files and 581 insertions/deletions, but the changes are limited to: feature flags, protobuf message/enum names, generated bindings, translation keys, CLI option names, CI matrix variables, and test helper names. No logic, parsing, cryptography, access control, or wire protocol semantics are modified. MessageType numeric values and protobuf field numbers are preserved.
Changed components
core build system / feature flagscommon protobuf definitionsgenerated Python/Rust protobuf bindingscore translationscore apps/debug mockcore apps/management backup/recovery flowsCI workflowstest fixturesInspect captured patch +581 / −581
### .github/workflows/core.yml
@@ -67,7 +67,7 @@ jobs:
- run: nix-shell --run "cd core/embed && cargo clippy -p xtask -p xbuild --all-targets -- -D warnings"
core_firmware:
- name: Build firmware (${{ matrix.model }}, ${{ matrix.coins }}, ${{ matrix.type }}${{ matrix.miniscript && ', miniscript' || '' }}${{matrix.n1w1 && ', n1w1' || '' }})
+ name: Build firmware (${{ matrix.model }}, ${{ matrix.coins }}, ${{ matrix.type }}${{ matrix.miniscript && ', miniscript' || '' }}${{matrix.k1n1 && ', k1n1' || '' }})
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
@@ -77,7 +77,7 @@ jobs:
coins: [universal, btconly]
type: ${{ fromJSON(github.event_name == 'schedule' && '["normal", "debuglink", "production"]' || '["normal", "debuglink"]') }}
miniscript: [false]
- n1w1: [false]
+ k1n1: [false]
include:
- model: D001
coins: universal
@@ -95,7 +95,7 @@ jobs:
- model: T3W1
coins: universal
type: debuglink
- n1w1: true # currently N1W1 is not supported for normal builds
+ k1n1: true # currently K1N1 is not supported for normal builds
exclude:
- model: T3W1
type: production
@@ -104,7 +104,7 @@ jobs:
BITCOIN_ONLY: ${{ matrix.coins == 'universal' && '0' || '1' }}
PYOPT: ${{ matrix.type == 'debuglink' && '0' || '1' }}
MINISCRIPT: ${{ matrix.miniscript && '1' || '0' }}
- N1W1: ${{ matrix.n1w1 && '1' || '0' }}
+ K1N1: ${{ matrix.k1n1 && '1' || '0' }}
PRODUCTION: ${{ matrix.type == 'production' && '1' || '0' }}
BOOTLOADER_DEVEL: ${{ matrix.model == 'T3W1' && '1' || '0' }}
steps:
@@ -131,7 +131,7 @@ jobs:
if: matrix.coins == 'btconly' && matrix.type != 'debuglink'
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # actions/upload-artifact@v7.0.0
with:
- name: core-firmware-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.type }}${{ matrix.miniscript && '-miniscript' || '' }}${{ matrix.n1w1 && '-n1w1' || '' }}
+ name: core-firmware-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.type }}${{ matrix.miniscript && '-miniscript' || '' }}${{ matrix.k1n1 && '-k1n1' || '' }}
path: |
core/build/artifacts/latest/*.bin
core/build/artifacts/latest/*.elf
@@ -140,7 +140,7 @@ jobs:
retention-days: 7
core_emu:
- name: Build emu (${{ matrix.model }}, ${{ matrix.coins }}, ${{ matrix.type }}, ${{ matrix.asan }}${{ matrix.miniscript && ', miniscript' || '' }}${{matrix.n1w1 && ', n1w1' || '' }})
+ name: Build emu (${{ matrix.model }}, ${{ matrix.coins }}, ${{ matrix.type }}, ${{ matrix.asan }}${{ matrix.miniscript && ', miniscript' || '' }}${{matrix.k1n1 && ', k1n1' || '' }})
runs-on: ubuntu-latest
timeout-minutes: 15
needs: param
@@ -153,7 +153,7 @@ jobs:
type: ${{ fromJSON(github.event_name == 'schedule' && '["normal", "debuglink"]' || '["debuglink"]') }}
asan: ${{ fromJSON(needs.param.outputs.asan) }}
miniscript: [false]
- n1w1: [false]
+ k1n1: [false]
exclude:
- type: normal
asan: asan
@@ -167,13 +167,13 @@ jobs:
coins: universal
type: debuglink
asan: noasan
- n1w1: true # currently N1W1 is not supported for normal builds
+ k1n1: true # currently K1N1 is not supported for normal builds
env:
TREZOR_MODEL: ${{ matrix.model }}
BITCOIN_ONLY: ${{ matrix.coins == 'universal' && '0' || '1' }}
PYOPT: ${{ matrix.type == 'debuglink' && '0' || '1' }}
MINISCRIPT: ${{ matrix.miniscript && '1' || '0' }}
- N1W1: ${{ matrix.n1w1 && '1' || '0' }}
+ K1N1: ${{ matrix.k1n1 && '1' || '0' }}
ADDRESS_SANITIZER: ${{ matrix.asan == 'asan' && '1' || '0' }}
LSAN_OPTIONS: "suppressions=../../asan_suppressions.txt"
steps:
@@ -186,18 +186,18 @@ jobs:
- run: $UV_RUN make -C core build_unix_frozen
- run: $UV_RUN ./tools/check-insecure-prng.py --present --model $TREZOR_MODEL core/build/artifacts/latest/firmware-emu
- run: $UV_RUN make -C core test_emu_sanity
- - run: cp core/build/artifacts/latest/firmware-emu core/build/artifacts/latest/firmware-emu-${{ matrix.model }}-${{ matrix.coins }}${{ matrix.miniscript && '-miniscript' || '' }}${{ matrix.n1w1 && '-n1w1' || '' }}
+ - run: cp core/build/artifacts/latest/firmware-emu core/build/artifacts/latest/firmware-emu-${{ matrix.model }}-${{ matrix.coins }}${{ matrix.miniscript && '-miniscript' || '' }}${{ matrix.k1n1 && '-k1n1' || '' }}
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # actions/upload-artifact@v7.0.0
with:
- name: core-emu-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.type }}-${{ matrix.asan }}${{ matrix.miniscript && '-miniscript' || '' }}${{ matrix.n1w1 && '-n1w1' || '' }}
+ name: core-emu-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.type }}-${{ matrix.asan }}${{ matrix.miniscript && '-miniscript' || '' }}${{ matrix.k1n1 && '-k1n1' || '' }}
path: |
core/build/artifacts/latest/firmware-emu*
core/build/artifacts/latest/bootloader-emu
core/build/artifacts/latest/mpy-files/**/*.i
retention-days: 7
core_emu_arm:
- name: Build emu ARM (${{ matrix.model }}, ${{ matrix.coins }}, ${{ matrix.type }}, ${{ matrix.asan }}${{matrix.n1w1 && ', n1w1' || '' }})
+ name: Build emu ARM (${{ matrix.model }}, ${{ matrix.coins }}, ${{ matrix.type }}, ${{ matrix.asan }}${{matrix.k1n1 && ', k1n1' || '' }})
if: github.repository == 'trezor/trezor-firmware'
runs-on: ubuntu-26.04-arm
timeout-minutes: 15
@@ -209,18 +209,18 @@ jobs:
coins: [universal, btconly]
type: [debuglink]
asan: [noasan]
- n1w1: [false]
+ k1n1: [false]
include:
- model: T3W1
coins: universal
type: debuglink
asan: noasan
- n1w1: true # currently N1W1 is not supported for normal builds
+ k1n1: true # currently K1N1 is not supported for normal builds
env:
TREZOR_MODEL: ${{ matrix.model }}
BITCOIN_ONLY: ${{ matrix.coins == 'universal' && '0' || '1' }}
PYOPT: ${{ matrix.type == 'debuglink' && '0' || '1' }}
- N1W1: ${{ matrix.n1w1 && '1' || '0' }}
+ K1N1: ${{ matrix.k1n1 && '1' || '0' }}
ADDRESS_SANITIZER: ${{ matrix.asan == 'asan' && '1' || '0' }}
LSAN_OPTIONS: "suppressions=../../asan_suppressions.txt"
steps:
@@ -231,10 +231,10 @@ jobs:
- run: $UV_RUN make -C core build_bootloader_emu
if: matrix.coins == 'universal'
- run: $UV_RUN make -C core build_unix_frozen
- - run: mv core/build/artifacts/latest/firmware-emu core/build/artifacts/latest/firmware-emu-arm-${{ matrix.model }}-${{ matrix.coins }}${{ matrix.n1w1 && '-n1w1' || '' }}
+ - run: mv core/build/artifacts/latest/firmware-emu core/build/artifacts/latest/firmware-emu-arm-${{ matrix.model }}-${{ matrix.coins }}${{ matrix.k1n1 && '-k1n1' || '' }}
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # actions/upload-artifact@v7.0.0
with:
- name: core-emu-arm-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.type }}-${{ matrix.asan }}${{ matrix.n1w1 && '-n1w1' || '' }}
+ name: core-emu-arm-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.type }}-${{ matrix.asan }}${{ matrix.k1n1 && '-k1n1' || '' }}
path: |
core/build/artifacts/latest/firmware-emu*
core/build/artifacts/latest/bootloader-emu
@@ -362,7 +362,7 @@ jobs:
# See artifacts for a comprehensive report of UI.
# See [docs/tests/ui-tests](../tests/ui-tests.md) for more info.
core_device_test:
- name: Device tests (${{ matrix.model }}, ${{ matrix.coins }}, ${{ matrix.asan }}, ${{ matrix.lang }}${{ matrix.miniscript && ', miniscript' || '' }}${{ matrix.n1w1 && ', n1w1' || '' }})
+ name: Device tests (${{ matrix.model }}, ${{ matrix.coins }}, ${{ matrix.asan }}, ${{ matrix.lang }}${{ matrix.miniscript && ', miniscript' || '' }}${{ matrix.k1n1 && ', k1n1' || '' }})
runs-on: ubuntu-latest
needs:
- param
@@ -375,7 +375,7 @@ jobs:
asan: ${{ fromJSON(needs.param.outputs.asan) }}
lang: ${{ fromJSON(needs.param.outputs.test_lang) }}
miniscript: [false]
- n1w1: [false]
+ k1n1: [false]
include:
- model: T3T1
coins: btconly
@@ -386,14 +386,14 @@ jobs:
coins: universal
asan: noasan
lang: en
- n1w1: true
+ k1n1: true
env:
TREZOR_PROFILING: ${{ matrix.asan == 'noasan' && '1' || '0' }}
TREZOR_MODEL: ${{ matrix.model }}
ADDRESS_SANITIZER: ${{ matrix.asan == 'asan' && '1' || '0' }}
PYTEST_TIMEOUT: ${{ matrix.asan == 'asan' && 600 || 400 }}
ACTIONS_DO_UI_TEST: ${{ matrix.coins == 'universal' && matrix.asan == 'noasan' }}
- STABLE_FEATURES: ${{ !(matrix.miniscript || matrix.n1w1) }} # TODO: remove after stabilization
+ STABLE_FEATURES: ${{ !(matrix.miniscript || matrix.k1n1) }} # TODO: remove after stabilization
TEST_LANG: ${{ matrix.lang }}
TESTOPTS: "--durations 10 --session-timeout ${{ matrix.model == 'T3W1' && '3000' || '1800' }}" # pytest global timeout
timeout-minutes: ${{ matrix.model == 'T3W1' && 60 || 40 }} # CI job timeout
@@ -403,7 +403,7 @@ jobs:
submodules: recursive
- uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # actions/download-artifact@v8.0.0
with:
- name: core-emu-${{ matrix.model }}-${{ matrix.coins }}-debuglink-${{ matrix.asan }}${{ matrix.miniscript && '-miniscript' || '' }}${{ matrix.n1w1 && '-n1w1' || '' }}
+ name: core-emu-${{ matrix.model }}-${{ matrix.coins }}-debuglink-${{ matrix.asan }}${{ matrix.miniscript && '-miniscript' || '' }}${{ matrix.k1n1 && '-k1n1' || '' }}
path: core/build/artifacts/latest
- run: chmod +x core/build/artifacts/latest/firmware-emu*
- uses: ./.github/actions/environment
@@ -417,7 +417,7 @@ jobs:
if: failure()
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # actions/upload-artifact@v7.0.0
with:
- name: core-test-device-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.lang }}-${{ matrix.asan }}${{ matrix.miniscript && '-miniscript' || '' }}${{ matrix.n1w1 && '-n1w1' || '' }}
+ name: core-test-device-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.lang }}-${{ matrix.asan }}${{ matrix.miniscript && '-miniscript' || '' }}${{ matrix.k1n1 && '-k1n1' || '' }}
path: tests/trezor*.log
retention-days: 7
if: always()
### AGENTS.md
@@ -40,7 +40,7 @@ Makefiles if in doubt; this file only captures what is non-obvious.
- **Debuglink comes only from `--debug-link`** (set by the `test*` presets); `--pyopt false` alone does not
enable it. Without debuglink, pytest fails with `RuntimeError: No debuggable device found`.
- Other flags: `--btc-only`, `--production`, `--bootloader-devel` (exclusive with `--production`), `--asan`,
- `--disable-tropic`, `--n1w1`, `--debug`. See `xtask build --help`.
+ `--disable-tropic`, `--k1n1`, `--debug`. See `xtask build --help`.
- Legacy (Trezor One) builds are separate: see `docs/legacy/index.md`.
## Running the emulator
### common/protob/messages-debug.proto
@@ -315,39 +315,39 @@ message DebugLinkSetLogFilter {
}
/**
- * Request: Start N1W1 exchange over DebugLink (initiated by the host).
- * Blocks until there is a N1W1 request to be handled.
+ * Request: Start K1N1 exchange over DebugLink (initiated by the host).
+ * Blocks until there is a K1N1 request to be handled.
* @start
- * @next DebugLinkN1W1Read
- * @next DebugLinkN1W1Write
+ * @next DebugLinkK1N1Read
+ * @next DebugLinkK1N1Write
*/
-message DebugLinkN1W1Connected {}
+message DebugLinkK1N1Connected {}
/**
- * Request: Simulate N1W1 write over DebugLink (sent by the device).
+ * Request: Simulate K1N1 write over DebugLink (sent by the device).
* @start
- * @next DebugLinkN1W1Response
+ * @next DebugLinkK1N1Response
*/
-message DebugLinkN1W1Write {
+message DebugLinkK1N1Write {
optional string key = 1;
optional bytes value = 2; // if is None, the entry is deleted
}
/**
- * Request: Simulate N1W1 read over DebugLink (sent by the device).
+ * Request: Simulate K1N1 read over DebugLink (sent by the device).
* @start
- * @next DebugLinkN1W1Response
+ * @next DebugLinkK1N1Response
*/
-message DebugLinkN1W1Read {
+message DebugLinkK1N1Read {
optional string key = 1;
}
/**
- * Response: Simulate N1W1 read/write result over DebugLink (sent by the host).
- * @next DebugLinkN1W1Read
- * @next DebugLinkN1W1Write
+ * Response: Simulate K1N1 read/write result over DebugLink (sent by the host).
+ * @next DebugLinkK1N1Read
+ * @next DebugLinkK1N1Write
* @next Success
*/
-message DebugLinkN1W1Response {
+message DebugLinkK1N1Response {
optional bytes value = 1; // existing value is returned on write/delete, `None` if key is missing
}
### common/protob/messages-management.proto
@@ -27,7 +27,7 @@ enum BackupType {
*/
enum BackupMethod {
Display = 0; // the share words are displayed on the device screen
- N1W1 = 1;
+ K1N1 = 1;
}
/**
@@ -191,7 +191,7 @@ message Features {
Capability_BLE = 22 [(bitcoin_only) = true]; // Bluetooth Low Energy
Capability_NFC = 23 [(bitcoin_only) = true]; // Near Field Communications
Capability_Tron = 24;
- Capability_N1W1 = 25 [(bitcoin_only) = true];
+ Capability_K1N1 = 25 [(bitcoin_only) = true];
Capability_TouchWakeup = 26 [(bitcoin_only) = true]; // Touch to wake from sleep
reserved 27; // reserved for internal use
Capability_Ethereum_EIP7702 = 28; // Experimental EIP-7702 support
### common/protob/messages.proto
@@ -149,10 +149,10 @@ enum MessageType {
MessageType_DebugLinkGetPairingInfo = 9011 [(bitcoin_only) = true, (wire_debug_in) = true];
MessageType_DebugLinkPairingInfo = 9012 [(bitcoin_only) = true, (wire_debug_out) = true];
MessageType_DebugLinkSetLogFilter = 9013 [(bitcoin_only) = true, (wire_debug_in) = true];
- MessageType_DebugLinkN1W1Connected = 9014 [(bitcoin_only) = true, (wire_debug_in) = true];
- MessageType_DebugLinkN1W1Write = 9015 [(bitcoin_only) = true, (wire_debug_out) = true];
- MessageType_DebugLinkN1W1Read = 9016 [(bitcoin_only) = true, (wire_debug_out) = true];
- MessageType_DebugLinkN1W1Response = 9017 [(bitcoin_only) = true, (wire_debug_in) = true];
+ MessageType_DebugLinkK1N1Connected = 9014 [(bitcoin_only) = true, (wire_debug_in) = true];
+ MessageType_DebugLinkK1N1Write = 9015 [(bitcoin_only) = true, (wire_debug_out) = true];
+ MessageType_DebugLinkK1N1Read = 9016 [(bitcoin_only) = true, (wire_debug_out) = true];
+ MessageType_DebugLinkK1N1Response = 9017 [(bitcoin_only) = true, (wire_debug_in) = true];
MessageType_DebugLinkSetBatteryState = 9018 [(bitcoin_only) = true, (wire_debug_in) = true];
// Ethereum
### core/Makefile
@@ -70,8 +70,8 @@ endif
ifeq ($(MINISCRIPT),1)
XTASK_BUILD_OPTS += --miniscript
endif
-ifeq ($(N1W1),1)
-XTASK_BUILD_OPTS += --n1w1
+ifeq ($(K1N1),1)
+XTASK_BUILD_OPTS += --k1n1
endif
ifeq ($(PRODUCTION),1)
XTASK_BUILD_OPTS += --production
### core/embed/projects/firmware/Cargo.toml
@@ -41,7 +41,7 @@ log_stack_usage = ["upymod/log_stack_usage"]
memperf = ["upymod/memperf"]
micropy_enable_source_lines = ["upymod/enable_source_lines"]
miniscript = ["trezor_lib/miniscript", "upymod/miniscript", "tracked_allocator", "ward"]
-n1w1 = ["upymod/n1w1"]
+k1n1 = ["upymod/k1n1"]
optiga_testing = ["sec/optiga_testing"]
production = ["io/production"]
pyopt = ["upymod/pyopt"]
### core/embed/projects/firmware/project.toml
@@ -74,7 +74,7 @@ log-level = { off = ["sys/log_max_off"], error = ["sys/log_m
log-stack-usage = { true = ["log_stack_usage"] }
mem-perf = { true = ["memperf"] }
miniscript = { true = ["miniscript"] }
-n1w1 = { true = ["n1w1"] } # TODO: move back to `uses` section (after stabilization)
+k1n1 = { true = ["k1n1"] } # TODO: move back to `uses` section (after stabilization)
perf-overlay = { true = ["ui_performance_overlay"] }
production = { true = ["production"], false = ["dev_keys"] }
pyopt = { true = ["pyopt"], false = ["debug", "optiga_testing", "ui_debug_overlay"] }
### core/embed/projects/kernel/project.toml
@@ -54,7 +54,7 @@ debug-link = { true = ["debuglink"] }
force-bootloader-upgrade = { true = ["force_bootloader_upgrade"] }
log-external = { true = ["sys/log_external"] }
log-level = { off = ["sys/log_max_off"], error = ["sys/log_max_error"], warn = ["sys/log_max_warn"], info = ["sys/log_max_info"], debug = ["sys/log_max_debug"] }
-n1w1 = { true = ["nfc"] } # TODO: move back to `uses` section (after stabilization)
+k1n1 = { true = ["nfc"] } # TODO: move back to `uses` section (after stabilization)
production = { true = ["production"] }
pyopt = { false = ["optiga_testing"] }
storage-insecure-testing-mode = { true = ["storage_insecure_testing_mode"] }
### core/embed/rust/Cargo.toml
@@ -78,7 +78,7 @@ layout_delizia = []
layout_eckhart = []
micropython = ["dep:upymod"]
miniscript = []
-n1w1 = []
+k1n1 = []
nrf = []
optiga = []
pmic = []
### core/embed/rust/librust_qstr.h
@@ -176,7 +176,7 @@ static void _librust_qstrs(void) {
MP_QSTR_backup__title_skip;
MP_QSTR_backup__type_create;
MP_QSTR_backup__type_have;
- MP_QSTR_backup__type_n1w1;
+ MP_QSTR_backup__type_k1n1;
MP_QSTR_backup__type_wordlist;
MP_QSTR_backup__want_to_skip;
MP_QSTR_backup_check_allowed;
@@ -471,6 +471,17 @@ static void _librust_qstrs(void) {
MP_QSTR_joint__title;
MP_QSTR_joint__to_the_total_amount;
MP_QSTR_joint__you_are_contributing;
+ MP_QSTR_k1n1__err_damaged;
+ MP_QSTR_k1n1__err_empty;
+ MP_QSTR_k1n1__err_nonempty;
+ MP_QSTR_k1n1__footer_first;
+ MP_QSTR_k1n1__footer_last;
+ MP_QSTR_k1n1__footer_next;
+ MP_QSTR_k1n1__hold_first;
+ MP_QSTR_k1n1__hold_last;
+ MP_QSTR_k1n1__hold_next;
+ MP_QSTR_k1n1__reading;
+ MP_QSTR_k1n1__writing;
MP_QSTR_label;
MP_QSTR_language;
MP_QSTR_language__change_to_template;
@@ -521,17 +532,6 @@ static void _librust_qstrs(void) {
MP_QSTR_modify_fee__transaction_fee;
MP_QSTR_more_info_callback;
MP_QSTR_multiple_pages_texts;
- MP_QSTR_n1w1__err_damaged;
- MP_QSTR_n1w1__err_empty;
- MP_QSTR_n1w1__err_nonempty;
- MP_QSTR_n1w1__footer_first;
- MP_QSTR_n1w1__footer_last;
- MP_QSTR_n1w1__footer_next;
- MP_QSTR_n1w1__hold_first;
- MP_QSTR_n1w1__hold_last;
- MP_QSTR_n1w1__hold_next;
- MP_QSTR_n1w1__reading;
- MP_QSTR_n1w1__writing;
MP_QSTR_needs_params_refresh;
MP_QSTR_next_entry;
MP_QSTR_next_timeout;
### core/embed/rust/src/translations/generated/translated_string.rs
@@ -1497,13 +1497,13 @@ pub enum TranslatedString {
ethereum__confirm_contract = 1183, // "Confirm contract"
words__intent = 1184, // "Intent"
suite_sync__rotate_key = 1185, // "You are about to rotate the delegated identity key used for Suite Sync. This will invalidate previous keys. Do you want to proceed?"
- n1w1__footer_first = 1186, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Start with any tag"}
- n1w1__footer_last = 1187, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Use the last remaining tag"}
- n1w1__footer_next = 1188, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Use any remaining tag"}
- n1w1__hold_first = 1189, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Hold the first tag to the back of this Trezor."}
- n1w1__hold_last = 1190, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Hold the last tag to the back of this Trezor."}
- n1w1__hold_next = 1191, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Hold the next tag to the back of this Trezor."}
- n1w1__writing = 1192, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Writing to tag..."}
+ k1n1__footer_first = 1186, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Start with any tag"}
+ k1n1__footer_last = 1187, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Use the last remaining tag"}
+ k1n1__footer_next = 1188, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Use any remaining tag"}
+ k1n1__hold_first = 1189, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Hold the first tag to the back of this Trezor."}
+ k1n1__hold_last = 1190, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Hold the last tag to the back of this Trezor."}
+ k1n1__hold_next = 1191, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Hold the next tag to the back of this Trezor."}
+ k1n1__writing = 1192, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Writing to tag..."}
#[cfg(feature = "universal_fw")]
ethereum__deposit_amount = 1193, // "Deposit amount"
#[cfg(feature = "universal_fw")]
@@ -1532,7 +1532,7 @@ pub enum TranslatedString {
cardano__credential_intro_template = 1207, // "{0} credential is a {1}"
#[cfg(feature = "universal_fw")]
cardano__key_path = 1208, // "key path"
- backup__type_n1w1 = 1209, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "N1W1 backup"}
+ backup__type_k1n1 = 1209, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "K1N1 backup"}
backup__type_wordlist = 1210, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Wordlist backup"}
#[cfg(feature = "universal_fw")]
ethereum__title_token_contract = 1211, // "Contract address"
@@ -1554,10 +1554,10 @@ pub enum TranslatedString {
ethereum__calldata_suffix = 1219, // "Calldata suffix"
backup__type_create = 1220, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Select the type of wallet backup you want to create."}
backup__type_have = 1221, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Which type of wallet backup do you have?"}
- n1w1__reading = 1222, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Reading tag..."}
- n1w1__err_empty = 1223, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "This tag is empty. Continue to scan a different tag."}
- n1w1__err_nonempty = 1224, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Non-empty N1W1 tag."}
- n1w1__err_damaged = 1225, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "This tag is damaged. Continue to try again or scan the next tag."}
+ k1n1__reading = 1222, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Reading tag..."}
+ k1n1__err_empty = 1223, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "This tag is empty. Continue to scan a different tag."}
+ k1n1__err_nonempty = 1224, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "Non-empty K1N1 tag."}
+ k1n1__err_damaged = 1225, // {"Bolt": "", "Caesar": "", "Delizia": "", "Eckhart": "This tag is damaged. Continue to try again or scan the next tag."}
#[cfg(feature = "universal_fw")]
ripple__account_deletion_warning = 1226, // "Delete Ripple account?"
#[cfg(feature = "universal_fw")]
@@ -34659,7 +34659,7 @@ impl TranslatedString {
"",
"{0} credential is a {1}",
"key path",
- "N1W1 backup",
+ "K1N1 backup",
"Wordlist backup",
"Contract address",
"Redeem",
@@ -34674,7 +34674,7 @@ impl TranslatedString {
"Which type of wallet backup do you have?",
"Reading tag...",
"This tag is empty. Continue to scan a different tag.",
- "Non-empty N1W1 tag.",
+ "Non-empty K1N1 tag.",
"This tag is damaged. Continue to try again or scan the next tag.",
"Delete Ripple account?",
"To be deleted",
@@ -37304,7 +37304,7 @@ impl TranslatedString {
"",
"{0} credential is a {1}",
"key path",
- "N1W1 backup",
+ "K1N1 backup",
"Wordlist backup",
"Contract address",
"Redeem",
@@ -37319,7 +37319,7 @@ impl TranslatedString {
"Which type of wallet backup do you have?",
"Reading tag...",
"This tag is empty. Continue to scan a different tag.",
- "Non-empty N1W1 tag.",
+ "Non-empty K1N1 tag.",
"This tag is damaged. Continue to try again or scan the next tag.",
"Delete Ripple account?",
"To be deleted",
@@ -39949,7 +39949,7 @@ impl TranslatedString {
"",
"{0} credential is a {1}",
"key path",
- "N1W1 backup",
+ "K1N1 backup",
"Wordlist backup",
"Contract address",
"Redeem",
@@ -39964,7 +39964,7 @@ impl TranslatedString {
"Which type of wallet backup do you have?",
"Reading tag...",
"This tag is empty. Continue to scan a different tag.",
- "Non-empty N1W1 tag.",
+ "Non-empty K1N1 tag.",
"This tag is damaged. Continue to try again or scan the next tag.",
"Delete Ripple account?",
"To be deleted",
@@ -42594,7 +42594,7 @@ impl TranslatedString {
"",
"{0} credential is a {1}",
"key path",
- "N1W1 backup",
+ "K1N1 backup",
"Wordlist backup",
"Contract address",
"Redeem",
@@ -42609,7 +42609,7 @@ impl TranslatedString {
"Which type of wallet backup do you have?",
"Reading tag...",
"This tag is empty. Continue to scan a different tag.",
- "Non-empty N1W1 tag.",
+ "Non-empty K1N1 tag.",
"This tag is damaged. Continue to try again or scan the next tag.",
"Delete Ripple account?",
"To be deleted",
@@ -44085,7 +44085,7 @@ impl TranslatedString {
(Qstr::MP_QSTR_backup__title_skip, Self::backup__title_skip),
(Qstr::MP_QSTR_backup__type_create, Self::backup__type_create),
(Qstr::MP_QSTR_backup__type_have, Self::backup__type_have),
- (Qstr::MP_QSTR_backup__type_n1w1, Self::backup__type_n1w1),
+ (Qstr::MP_QSTR_backup__type_k1n1, Self::backup__type_k1n1),
(Qstr::MP_QSTR_backup__type_wordlist, Self::backup__type_wordlist),
(Qstr::MP_QSTR_backup__want_to_skip, Self::backup__want_to_skip),
(Qstr::MP_QSTR_bitcoin__commitment_data, Self::bitcoin__commitment_data),
@@ -44798,6 +44798,17 @@ impl TranslatedString {
(Qstr::MP_QSTR_joint__title, Self::joint__title),
(Qstr::MP_QSTR_joint__to_the_total_amount, Self::joint__to_the_total_amount),
(Qstr::MP_QSTR_joint__you_are_contributing, Self::joint__you_are_contributing),
+ (Qstr::MP_QSTR_k1n1__err_damaged, Self::k1n1__err_damaged),
+ (Qstr::MP_QSTR_k1n1__err_empty, Self::k1n1__err_empty),
+ (Qstr::MP_QSTR_k1n1__err_nonempty, Self::k1n1__err_nonempty),
+ (Qstr::MP_QSTR_k1n1__footer_first, Self::k1n1__footer_first),
+ (Qstr::MP_QSTR_k1n1__footer_last, Self::k1n1__footer_last),
+ (Qstr::MP_QSTR_k1n1__footer_next, Self::k1n1__footer_next),
+ (Qstr::MP_QSTR_k1n1__hold_first, Self::k1n1__hold_first),
+ (Qstr::MP_QSTR_k1n1__hold_last, Self::k1n1__hold_last),
+ (Qstr::MP_QSTR_k1n1__hold_next, Self::k1n1__hold_next),
+ (Qstr::MP_QSTR_k1n1__reading, Self::k1n1__reading),
+ (Qstr::MP_QSTR_k1n1__writing, Self::k1n1__writing),
(Qstr::MP_QSTR_language__change_to_template, Self::language__change_to_template),
(Qstr::MP_QSTR_language__changed, Self::language__changed),
(Qstr::MP_QSTR_language__progress, Self::language__progress),
@@ -44862,17 +44873,6 @@ impl TranslatedString {
(Qstr::MP_QSTR_monero__wanna_start_refresh, Self::monero__wanna_start_refresh),
#[cfg(feature = "universal_fw")]
(Qstr::MP_QSTR_monero__wanna_sync_key_images, Self::monero__wanna_sync_key_images),
- (Qstr::MP_QSTR_n1w1__err_damaged, Self::n1w1__err_damaged),
- (Qstr::MP_QSTR_n1w1__err_empty, Self::n1w1__err_empty),
- (Qstr::MP_QSTR_n1w1__err_nonempty, Self::n1w1__err_nonempty),
- (Qstr::MP_QSTR_n1w1__footer_first, Self::n1w1__footer_first),
- (Qstr::MP_QSTR_n1w1__footer_last, Self::n1w1__footer_last),
- (Qstr::MP_QSTR_n1w1__footer_next, Self::n1w1__footer_next),
- (Qstr::MP_QSTR_n1w1__hold_first, Self::n1w1__hold_first),
- (Qstr::MP_QSTR_n1w1__hold_last, Self::n1w1__hold_last),
- (Qstr::MP_QSTR_n1w1__hold_next, Self::n1w1__hold_next),
- (Qstr::MP_QSTR_n1w1__reading, Self::n1w1__reading),
- (Qstr::MP_QSTR_n1w1__writing, Self::n1w1__writing),
#[cfg(feature = "universal_fw")]
(Qstr::MP_QSTR_nem__absolute, Self::nem__absolute),
#[cfg(feature = "universal_fw")]
### core/embed/upymod/Cargo.toml
@@ -52,7 +52,7 @@ log_stack_usage = []
mcu_attestation = ["sec/mcu_attestation"]
memperf = []
miniscript = []
-n1w1 = ["nfc"]
+k1n1 = ["nfc"]
nfc = ["io/nfc"]
nem = []
optiga = ["sec/optiga"]
### core/embed/upymod/build.rs
@@ -76,8 +76,8 @@ fn main() -> Result<()> {
lib.add_define("USE_TRACKED_ALLOCATOR", Some("1"));
}
- if cfg!(feature = "n1w1") {
- lib.add_define("USE_N1W1", Some("1"));
+ if cfg!(feature = "k1n1") {
+ lib.add_define("USE_K1N1", Some("1"));
}
if cfg!(feature = "nfc") {
@@ -963,7 +963,7 @@ impl<'a> MpyBuilder<'a> {
let haptic = py_bool(cfg!(feature = "haptic"));
let mcu_attestation = py_bool(cfg!(feature = "mcu_attestation"));
let miniscript = py_bool(cfg!(feature = "miniscript"));
- let n1w1 = py_bool(cfg!(feature = "n1w1"));
+ let k1n1 = py_bool(cfg!(feature = "k1n1"));
let optiga = py_bool(cfg!(feature = "optiga"));
let power_manager = py_bool(cfg!(feature = "power_manager"));
let rgb_led = py_bool(cfg!(feature = "rgb_led"));
@@ -988,7 +988,7 @@ impl<'a> MpyBuilder<'a> {
format!(r"s/utils\.USE_BLE/{ble}/g"),
format!(r"s/utils\.USE_BUTTON/{button}/g"),
format!(r"s/utils\.USE_HAPTIC/{haptic}/g"),
- format!(r"s/utils\.USE_N1W1/{n1w1}/g"),
+ format!(r"s/utils\.USE_K1N1/{k1n1}/g"),
format!(r"s/utils\.USE_MINISCRIPT/{miniscript}/g"),
format!(r"s/utils\.USE_MCU_ATTESTATION/{mcu_attestation}/g"),
format!(r"s/utils\.USE_OPTIGA/{optiga}/g"),
@@ -1153,7 +1153,7 @@ impl<'a> MpyBuilder<'a> {
files.add(src, "apps/debug/*.py")?;
if current_model != "T3W1" {
- files.remove(src, "apps/debug/n1w1_mock.py");
+ files.remove(src, "apps/debug/k1n1_mock.py");
}
}
### core/embed/upymod/modtrezorutils/modtrezorutils.c
@@ -878,8 +878,8 @@ static const mp_obj_tuple_t mod_trezorutils_version_obj = {
/// """Whether a telemetry is supported."""
/// USE_MINISCRIPT: bool
/// """Whether Miniscript is supported."""
-/// USE_N1W1: bool
-/// """Whether N1W1 is supported."""
+/// USE_K1N1: bool
+/// """Whether K1N1 is supported."""
/// USE_AES_GCM: bool
/// """Whether the AES-GCM is supported."""
/// USE_WARD: bool
@@ -1011,10 +1011,10 @@ static const mp_rom_map_elem_t mp_module_trezorutils_globals_table[] = {
#else
{MP_ROM_QSTR(MP_QSTR_USE_MINISCRIPT), mp_const_false},
#endif
-#if USE_N1W1
- {MP_ROM_QSTR(MP_QSTR_USE_N1W1), mp_const_true},
+#if USE_K1N1
+ {MP_ROM_QSTR(MP_QSTR_USE_K1N1), mp_const_true},
#else
- {MP_ROM_QSTR(MP_QSTR_USE_N1W1), mp_const_false},
+ {MP_ROM_QSTR(MP_QSTR_USE_K1N1), mp_const_false},
#endif
#if USE_AES_GCM
{MP_ROM_QSTR(MP_QSTR_USE_AES_GCM), mp_const_true},
### core/embed/upymod/qstrdefsport.h
@@ -865,11 +865,11 @@ Q(DebugTouchEventType)
Q(DebugWaitType)
Q(__main__)
Q(apps.debug)
+Q(apps.debug.k1n1_mock)
Q(apps.debug.load_device)
-Q(apps.debug.n1w1_mock)
Q(debug)
+Q(k1n1_mock)
Q(load_device)
-Q(n1w1_mock)
Q(prof)
Q(prof.__main__)
Q(storage.debug)
### core/embed/xtask/src/options.rs
@@ -213,9 +213,9 @@ build_options! {
#[arg(long, num_args = 0..=1, default_missing_value = "true")]
map debug_link: bool,
- /// Enable N1W1 support
+ /// Enable K1N1 support
#[arg(long, num_args = 0..=1, default_missing_value = "true")]
- map n1w1: bool,
+ map k1n1: bool,
/// Experimental miniscript support.
#[arg(long, num_args = 0..=1, default_missing_value = "true")]
### core/embed/xtask/tbench/manifest.yaml
@@ -154,9 +154,9 @@ options:
when: component(firmware)
type: checkbox
- - id: n1w1
- name: N1W1 Support
- description: Enables N1W1 support.
+ - id: k1n1
+ name: K1N1 Support
+ description: Enables K1N1 support.
group: Features
when: component(firmware)
type: checkbox
### core/mocks/generated/trezorutils.pyi
@@ -290,8 +290,8 @@ USE_TELEMETRY: bool
"""Whether a telemetry is supported."""
USE_MINISCRIPT: bool
"""Whether Miniscript is supported."""
-USE_N1W1: bool
-"""Whether N1W1 is supported."""
+USE_K1N1: bool
+"""Whether K1N1 is supported."""
USE_AES_GCM: bool
"""Whether the AES-GCM is supported."""
USE_WARD: bool
### core/mocks/trezortranslate_keys.pyi
@@ -52,7 +52,7 @@ class TR:
backup__title_skip: str = "Skip backup"
backup__type_create: str = "Select the type of wallet backup you want to create."
backup__type_have: str = "Which type of wallet backup do you have?"
- backup__type_n1w1: str = "N1W1 backup"
+ backup__type_k1n1: str = "K1N1 backup"
backup__type_wordlist: str = "Wordlist backup"
backup__want_to_skip: str = "Are you sure you want to skip the backup?"
bitcoin__commitment_data: str = "Commitment data"
@@ -496,6 +496,17 @@ class TR:
joint__title: str = "Joint transaction"
joint__to_the_total_amount: str = "To the total amount"
joint__you_are_contributing: str = "You are contributing"
+ k1n1__err_damaged: str = "This tag is damaged. Continue to try again or scan the next tag."
+ k1n1__err_empty: str = "This tag is empty. Continue to scan a different tag."
+ k1n1__err_nonempty: str = "Non-empty K1N1 tag."
+ k1n1__footer_first: str = "Start with any tag"
+ k1n1__footer_last: str = "Use the last remaining tag"
+ k1n1__footer_next: str = "Use any remaining tag"
+ k1n1__hold_first: str = "Hold the first tag to the back of this Trezor."
+ k1n1__hold_last: str = "Hold the last tag to the back of this Trezor."
+ k1n1__hold_next: str = "Hold the next tag to the back of this Trezor."
+ k1n1__reading: str = "Reading tag..."
+ k1n1__writing: str = "Writing to tag..."
language__change_to_template: str = "Change language to {0}?"
language__changed: str = "Language changed successfully."
language__progress: str = "Changing language..."
@@ -542,17 +553,6 @@ class TR:
monero__wanna_export_watchkey: str = "Do you really want to export watch-only credentials?"
monero__wanna_start_refresh: str = "Do you really want to\nstart refresh?"
monero__wanna_sync_key_images: str = "Do you really want to\nsync key images?"
- n1w1__err_damaged: str = "This tag is damaged. Continue to try again or scan the next tag."
- n1w1__err_empty: str = "This tag is empty. Continue to scan a different tag."
- n1w1__err_nonempty: str = "Non-empty N1W1 tag."
- n1w1__footer_first: str = "Start with any tag"
- n1w1__footer_last: str = "Use the last remaining tag"
- n1w1__footer_next: str = "Use any remaining tag"
- n1w1__hold_first: str = "Hold the first tag to the back of this Trezor."
- n1w1__hold_last: str = "Hold the last tag to the back of this Trezor."
- n1w1__hold_next: str = "Hold the next tag to the back of this Trezor."
- n1w1__reading: str = "Reading tag..."
- n1w1__writing: str = "Writing to tag..."
nem__absolute: str = "absolute"
nem__activate: str = "Activate"
nem__add: str = "Add"
### core/src/apps/base.py
@@ -169,8 +169,8 @@ def get_features() -> Features:
if utils.USE_NFC:
f.capabilities.append(Capability.NFC)
- if utils.USE_N1W1:
- f.capabilities.append(Capability.N1W1)
+ if utils.USE_K1N1:
+ f.capabilities.append(Capability.K1N1)
if utils.USE_MINISCRIPT:
f.capabilities.append(Capability.Miniscript)
### core/src/apps/debug/__init__.py
@@ -28,7 +28,7 @@
DebugLinkGetGcInfo,
DebugLinkGetPairingInfo,
DebugLinkGetState,
- DebugLinkN1W1Connected,
+ DebugLinkK1N1Connected,
DebugLinkOptigaSetSecMax,
DebugLinkPairingInfo,
DebugLinkRecordScreen,
@@ -497,11 +497,11 @@ async def dispatch_WipeDevice(msg: WipeDevice) -> None:
finally:
raise RestartEventLoop
- if utils.USE_N1W1:
+ if utils.USE_K1N1:
- async def dispatch_DebugLinkConnected(msg: DebugLinkN1W1Connected) -> Success:
- """Exchange a sequence of N1W1 messages."""
- from .n1w1_mock import ctx
+ async def dispatch_DebugLinkConnected(msg: DebugLinkK1N1Connected) -> Success:
+ """Exchange a sequence of K1N1 messages."""
+ from .k1n1_mock import ctx
assert DEBUG_CONTEXT is not None
await ctx.handle(DEBUG_CONTEXT)
@@ -626,8 +626,8 @@ async def handle_session(iface: WireInterface) -> None:
MessageType.WipeDevice: dispatch_WipeDevice,
}
- if utils.USE_N1W1:
- WORKFLOW_HANDLERS[MessageType.DebugLinkN1W1Connected] = (
+ if utils.USE_K1N1:
+ WORKFLOW_HANDLERS[MessageType.DebugLinkK1N1Connected] = (
dispatch_DebugLinkConnected
)
### core/src/apps/debug/k1n1_mock.py
@@ -1,7 +1,7 @@
from typing import TYPE_CHECKING
from trezor import log, loop
-from trezor.messages import DebugLinkN1W1Read, DebugLinkN1W1Response, DebugLinkN1W1Write
+from trezor.messages import DebugLinkK1N1Read, DebugLinkK1N1Response, DebugLinkK1N1Write
from trezor.ui import Layout
if TYPE_CHECKING:
@@ -12,74 +12,74 @@
from trezor.wire.context import Context
from typing_extensions import Self
- DebugLinkN1W1Request = DebugLinkN1W1Read | DebugLinkN1W1Write
+ DebugLinkK1N1Request = DebugLinkK1N1Read | DebugLinkK1N1Write
-class N1W1Context:
+class K1N1Context:
def __init__(self) -> None:
- self.tx: loop.mailbox[DebugLinkN1W1Request | None] = loop.mailbox()
- self.rx: loop.mailbox[DebugLinkN1W1Response] = loop.mailbox()
+ self.tx: loop.mailbox[DebugLinkK1N1Request | None] = loop.mailbox()
+ self.rx: loop.mailbox[DebugLinkK1N1Response] = loop.mailbox()
- # Invoked by the application (to communicate via N1W1)
+ # Invoked by the application (to communicate via K1N1)
def __enter__(self) -> Self:
- log.debug(__name__, "N1W1 exchange start")
+ log.debug(__name__, "K1N1 exchange start")
return self
def __exit__(self, exc_type: Any, exc_val: Any, tb: Any) -> None:
- log.debug(__name__, "N1W1 exchange done")
+ log.debug(__name__, "K1N1 exchange done")
self.tx.put(None)
async def connect(self) -> None:
- """Wait for N1W1 connection notification."""
+ """Wait for K1N1 connection notification."""
res = await self.rx
assert res.value is None
async def read(self, key: str) -> AnyBytes | None:
- """Read a specific entry from N1W1."""
- log.debug(__name__, "N1W1 read: %s", key)
- self.tx.put(DebugLinkN1W1Read(key=key))
- # blocks until N1W1 connection + response
+ """Read a specific entry from K1N1."""
+ log.debug(__name__, "K1N1 read: %s", key)
+ self.tx.put(DebugLinkK1N1Read(key=key))
+ # blocks until K1N1 connection + response
resp = await self.rx
- log.debug(__name__, "N1W1 response: %s", resp.value)
+ log.debug(__name__, "K1N1 response: %s", resp.value)
return resp.value
async def write(self, key: str, value: AnyBytes | None) -> AnyBytes | None:
- """Write/delete a specific entry from N1W1."""
- log.debug(__name__, "N1W1 write: %s %s", key, value)
- self.tx.put(DebugLinkN1W1Write(key=key, value=value))
- # blocks until N1W1 connection + response
+ """Write/delete a specific entry from K1N1."""
+ log.debug(__name__, "K1N1 write: %s %s", key, value)
+ self.tx.put(DebugLinkK1N1Write(key=key, value=value))
+ # blocks until K1N1 connection + response
resp = await self.rx
- log.debug(__name__, "N1W1 response: %s", resp.value)
+ log.debug(__name__, "K1N1 response: %s", resp.value)
return resp.value
- # Invoked to communicate with N1W1 emulator over apps.debug.DEBUG_CONTEXT
+ # Invoked to communicate with K1N1 emulator over apps.debug.DEBUG_CONTEXT
async def handle(self, ctx: Context) -> None:
"""Called from `apps.debug.dispatch_DebugLinkConnected()`."""
- self.rx.put(DebugLinkN1W1Response(value=None)) # notify `self.connect()`
+ self.rx.put(DebugLinkK1N1Response(value=None)) # notify `self.connect()`
while (req := await self.tx) is not None:
- res = await ctx.call(req, DebugLinkN1W1Response)
+ res = await ctx.call(req, DebugLinkK1N1Response)
self.rx.put(res)
async def confirm_connect(
self, *, title: str, description: str, button: str, br_name: str | None
) -> None:
- """Show a layout waiting for N1W1 connection, allowing cancellation."""
+ """Show a layout waiting for K1N1 connection, allowing cancellation."""
from trezor import TR
from trezor.ui.layouts.menu import Menu, cancel_leaf, confirm_with_menu
from trezorui_api import show_info
- self_ctx: N1W1Context = self
+ self_ctx: K1N1Context = self
class _Connect(Layout):
def create_tasks(self) -> Iterator[loop.Task[None]]:
from trezor.ui import Shutdown
from trezorui_api import CONFIRMED
async def _task() -> None:
- await self_ctx.connect() # blocks until N1W1 is connected.
+ await self_ctx.connect() # blocks until K1N1 is connected.
try:
# emitting a message raises Shutdown exception
self._emit_message(CONFIRMED)
@@ -103,4 +103,4 @@ async def _task() -> None:
)
-ctx = N1W1Context()
+ctx = K1N1Context()
### core/src/apps/management/recovery_device/layout.py
@@ -279,7 +279,7 @@ async def request_mnemonic(self) -> str | None:
return None
-if not utils.USE_N1W1:
+if not utils.USE_K1N1:
async def choose_handler(method: BackupMethod | None) -> type[RecoveryHandler]:
@@ -305,8 +305,8 @@ async def choose_handler(method: BackupMethod | None) -> type[RecoveryHandler]:
method = await choose_method(TR.recovery__title, TR.backup__type_have)
- if method is BackupMethod.N1W1:
- return _N1W1Handler
+ if method is BackupMethod.K1N1:
+ return _K1N1Handler
if method not in (None, BackupMethod.Display):
from trezor import log
@@ -321,30 +321,30 @@ def __init__(self, msg: str) -> None:
self.msg = msg
async def _read_share() -> str:
- from apps.debug import n1w1_mock
+ from apps.debug import k1n1_mock
- with n1w1_mock.ctx as ctx:
+ with k1n1_mock.ctx as ctx:
# returns `None` on cancellation or retriable error.
await ctx.confirm_connect(
title=TR.recovery__title,
- description=TR.n1w1__hold_next,
- button=TR.n1w1__footer_next,
+ description=TR.k1n1__hold_next,
+ button=TR.k1n1__footer_next,
br_name="backup_read",
)
- # continue N1W1 communication (the tag is connected)
+ # continue K1N1 communication (the tag is connected)
- # TODO(N1W1): animate during read?
+ # TODO(K1N1): animate during read?
if (blob := await ctx.read(key="mnemonic")) is None:
- raise RetryRead(TR.n1w1__err_empty)
+ raise RetryRead(TR.k1n1__err_empty)
- # TODO(N1W1): use protobuf?
+ # TODO(K1N1): use protobuf?
blob = bytes(blob)
try:
return blob.decode()
except ValueError:
- raise RetryRead(TR.n1w1__err_damaged)
+ raise RetryRead(TR.k1n1__err_damaged)
- class _N1W1Handler:
+ class _K1N1Handler:
def __init__(
self,
recovery_type: RecoveryType,
@@ -383,7 +383,7 @@ async def request_mnemonic(self) -> str | None:
danger=True,
) as layout:
await raise_if_not_confirmed(layout, br_name="recovery_retry")
- # wait for a new N1W1 tag
+ # wait for a new K1N1 tag
continue
return await self.check_words(share)
@@ -397,7 +397,7 @@ async def check_words(self, share: str) -> str | None:
backup_type = self.slip39_state and self.slip39_state[1]
share_words = share.split(" ")
- progress_obj = progress(description=TR.n1w1__reading)
+ progress_obj = progress(description=TR.k1n1__reading)
progress_obj.start()
try:
### core/src/apps/management/reset_device/layout.py
@@ -200,7 +200,7 @@ async def _backup_share(self, share: ShareInfo) -> None:
async def choose_backup_handler(method: BackupMethod | None) -> BackupHandler:
from trezor.enums import BackupMethod
- if utils.USE_N1W1:
+ if utils.USE_K1N1:
if method is None:
from trezor.ui.layouts.recovery import choose_method
@@ -209,8 +209,8 @@ async def choose_backup_handler(method: BackupMethod | None) -> BackupHandler:
TR.backup__type_create,
)
- if method is BackupMethod.N1W1:
- return _N1W1Backup()
+ if method is BackupMethod.K1N1:
+ return _K1N1Backup()
if method not in (None, BackupMethod.Display):
from trezor import log
@@ -221,46 +221,46 @@ async def choose_backup_handler(method: BackupMethod | None) -> BackupHandler:
return _DisplayBackup()
-if utils.USE_N1W1:
+if utils.USE_K1N1:
from trezor import TR
if TYPE_CHECKING:
from buffer_types import AnyBytes
- from apps.debug.n1w1_mock import N1W1Context
+ from apps.debug.k1n1_mock import K1N1Context
class RetryWrite(Exception):
def __init__(self, msg: str) -> None:
self.msg = msg
- class _N1W1Backup:
+ class _K1N1Backup:
async def intro(self, num_of_words: int | None = None) -> None:
- # TODO(N1W1): design/copy
+ # TODO(K1N1): design/copy
pass
async def backup(self, iter_shares: Iterable[ShareInfo]) -> None:
- # TODO(N1W1): warn user about safety
+ # TODO(K1N1): warn user about safety
# backup all shares
for share in iter_shares:
await self._backup_share(share)
async def _backup_share(self, share: ShareInfo) -> None:
- from apps.debug import n1w1_mock
+ from apps.debug import k1n1_mock
- # TODO(N1W1): use protobuf?
+ # TODO(K1N1): use protobuf?
blob = " ".join(share.words).encode()
if share.index == 0 or share.num_of_shares is None:
- description, button = TR.n1w1__hold_first, TR.n1w1__footer_first
+ description, button = TR.k1n1__hold_first, TR.k1n1__footer_first
elif share.index == share.num_of_shares - 1:
- description, button = TR.n1w1__hold_last, TR.n1w1__footer_last
+ description, button = TR.k1n1__hold_last, TR.k1n1__footer_last
else:
- description, button = TR.n1w1__hold_next, TR.n1w1__footer_next
+ description, button = TR.k1n1__hold_next, TR.k1n1__footer_next
while True:
try:
- with n1w1_mock.ctx as ctx:
+ with k1n1_mock.ctx as ctx:
return await _write_share(ctx, description, button, blob)
except RetryWrite as exc:
import trezorui_api
@@ -273,11 +273,11 @@ async def _backup_share(self, share: ShareInfo) -> None:
danger=True,
) as layout:
await raise_if_not_confirmed(layout, br_name="backup_retry")
- # wait for a new N1W1 tag
+ # wait for a new K1N1 tag
continue
async def _write_share(
- ctx: N1W1Context, description: str, button: str, blob: AnyBytes
+ ctx: K1N1Context, description: str, button: str, blob: AnyBytes
) -> None:
from trezor.ui.layouts.progress import progress
@@ -287,17 +287,17 @@ async def _write_share(
button=button,
br_name="backup_write",
)
- # continue N1W1 communication (the tag is connected)
+ # continue K1N1 communication (the tag is connected)
result = await ctx.read(key="mnemonic")
if result is not None:
- raise RetryWrite(TR.n1w1__err_nonempty)
+ raise RetryWrite(TR.k1n1__err_nonempty)
- progress_obj = progress(description=TR.n1w1__writing)
+ progress_obj = progress(description=TR.k1n1__writing)
progress_obj.start()
progress_obj.report(100)
try:
await ctx.write(key="mnemonic", value=blob)
- # TODO(N1W1): animate during I/O?
+ # TODO(K1N1): animate during I/O?
progress_obj.report(1000)
finally:
progress_obj.stop()
### core/src/trezor/enums/BackupMethod.py
@@ -3,4 +3,4 @@
# isort:skip_file
Display = 0
-N1W1 = 1
+K1N1 = 1
### core/src/trezor/enums/Capability.py
@@ -14,7 +14,7 @@
Haptic = 21
BLE = 22
NFC = 23
-N1W1 = 25
+K1N1 = 25
TouchWakeup = 26
Miniscript = 29
if not utils.BITCOIN_ONLY:
### core/src/trezor/enums/MessageType.py
@@ -125,10 +125,10 @@
DebugLinkGetPairingInfo = 9011
DebugLinkPairingInfo = 9012
DebugLinkSetLogFilter = 9013
- DebugLinkN1W1Connected = 9014
- DebugLinkN1W1Write = 9015
- DebugLinkN1W1Read = 9016
- DebugLinkN1W1Response = 9017
+ DebugLinkK1N1Connected = 9014
+ DebugLinkK1N1Write = 9015
+ DebugLinkK1N1Read = 9016
+ DebugLinkK1N1Response = 9017
DebugLinkSetBatteryState = 9018
if utils.USE_THP:
ThpCreateNewSession = 1000
### core/src/trezor/enums/__init__.py
@@ -181,7 +181,7 @@ class BackupType(IntEnum):
class BackupMethod(IntEnum):
Display = 0
- N1W1 = 1
+ K1N1 = 1
class SafetyCheckLevel(IntEnum):
Strict = 0
@@ -239,7 +239,7 @@ class Capability(IntEnum):
BLE = 22
NFC = 23
Tron = 24
- N1W1 = 25
+ K1N1 = 25
TouchWakeup = 26
Ethereum_EIP7702 = 28
Miniscript = 29
@@ -595,10 +595,10 @@ class MessageType(IntEnum):
DebugLinkGetPairingInfo = 9011
DebugLinkPairingInfo = 9012
DebugLinkSetLogFilter = 9013
- DebugLinkN1W1Connected = 9014
- DebugLinkN1W1Write = 9015
- DebugLinkN1W1Read = 9016
- DebugLinkN1W1Response = 9017
+ DebugLinkK1N1Connected = 9014
+ DebugLinkK1N1Write = 9015
+ DebugLinkK1N1Read = 9016
+ DebugLinkK1N1Response = 9017
DebugLinkSetBatteryState = 9018
EthereumGetPublicKey = 450
EthereumPublicKey = 451
### core/src/trezor/messages.py
@@ -3233,13 +3233,13 @@ def __init__(
def is_type_of(cls, msg: Any) -> TypeGuard["DebugLinkSetLogFilter"]:
return isinstance(msg, cls)
- class DebugLinkN1W1Connected(protobuf.MessageType):
+ class DebugLinkK1N1Connected(protobuf.MessageType):
@classmethod
- def is_type_of(cls, msg: Any) -> TypeGuard["DebugLinkN1W1Connected"]:
+ def is_type_of(cls, msg: Any) -> TypeGuard["DebugLinkK1N1Connected"]:
return isinstance(msg, cls)
- class DebugLinkN1W1Write(protobuf.MessageType):
+ class DebugLinkK1N1Write(protobuf.MessageType):
key: "str | None"
value: "AnyBytes | None"
@@ -3252,10 +3252,10 @@ def __init__(
pass
@classmethod
- def is_type_of(cls, msg: Any) -> TypeGuard["DebugLinkN1W1Write"]:
+ def is_type_of(cls, msg: Any) -> TypeGuard["DebugLinkK1N1Write"]:
return isinstance(msg, cls)
- class DebugLinkN1W1Read(protobuf.MessageType):
+ class DebugLinkK1N1Read(protobuf.MessageType):
key: "str | None"
def __init__(
@@ -3266,10 +3266,10 @@ def __init__(
pass
@classmethod
- def is_type_of(cls, msg: Any) -> TypeGuard["DebugLinkN1W1Read"]:
+ def is_type_of(cls, msg: Any) -> TypeGuard["DebugLinkK1N1Read"]:
return isinstance(msg, cls)
- class DebugLinkN1W1Response(protobuf.MessageType):
+ class DebugLinkK1N1Response(protobuf.MessageType):
value: "AnyBytes | None"
def __init__(
@@ -3280,7 +3280,7 @@ def __init__(
pass
@classmethod
- def is_type_of(cls, msg: Any) -> TypeGuard["DebugLinkN1W1Response"]:
+ def is_type_of(cls, msg: Any) -> TypeGuard["DebugLinkK1N1Response"]:
return isinstance(msg, cls)
class DebugLinkGcInfoItem(protobuf.MessageType):
### core/src/trezor/ui/layouts/eckhart/recovery.py
@@ -213,7 +213,7 @@ async def show_dry_run_result(result: bool, is_slip39: bool) -> None:
)
-if utils.USE_N1W1:
+if utils.USE_K1N1:
async def choose_method(title: str, description: str) -> BackupMethod:
import trezorui_api
@@ -222,7 +222,7 @@ async def choose_method(title: str, description: str) -> BackupMethod:
with trezorui_api.select_word(
title=title,
description=description,
- words=(TR.backup__type_n1w1, TR.backup__type_wordlist, ""),
+ words=(TR.backup__type_k1n1, TR.backup__type_wordlist, ""),
) as layout:
index = await interact(layout, br_name="choose_method")
- return (BackupMethod.N1W1, BackupMethod.Display)[index]
+ return (BackupMethod.K1N1, BackupMethod.Display)[index]
### core/src/trezor/utils.py
@@ -28,9 +28,9 @@
USE_BUTTON,
USE_DBG_CONSOLE,
USE_HAPTIC,
+ USE_K1N1,
USE_MCU_ATTESTATION,
USE_MINISCRIPT,
- USE_N1W1,
USE_NFC,
USE_NRF,
USE_OPTIGA,
### core/tools/k1n1-emu.py
@@ -6,10 +6,10 @@
from trezorlib.debuglink import DebugLink
from trezorlib.messages import (
- DebugLinkN1W1Connected,
- DebugLinkN1W1Read,
- DebugLinkN1W1Response,
- DebugLinkN1W1Write,
+ DebugLinkK1N1Connected,
+ DebugLinkK1N1Read,
+ DebugLinkK1N1Response,
+ DebugLinkK1N1Write,
Success,
)
from trezorlib.transport.udp import UdpTransport
@@ -25,7 +25,7 @@ def cli() -> None:
@click.argument("device_path")
@click.argument("db_file")
def run(device_path: str, db_file: str) -> None:
- """Run basic N1W1 emulator over DebugLink transport."""
+ """Run basic K1N1 emulator over DebugLink transport."""
with dbm.open(db_file, "c") as db:
for k, v in db.items():
print(f"{k} => {v}")
@@ -42,11 +42,11 @@ def run(device_path: str, db_file: str) -> None:
transport = UdpTransport(device_path)
debug = DebugLink(transport)
- req = debug._call(DebugLinkN1W1Connected())
+ req = debug._call(DebugLinkK1N1Connected())
while not isinstance(req, Success):
print(req)
value = None
- if isinstance(req, DebugLinkN1W1Write):
+ if isinstance(req, DebugLinkK1N1Write):
if req.key is not None:
# fetch the existing item
value = db.get(req.key, None)
@@ -55,13 +55,13 @@ def run(device_path: str, db_file: str) -> None:
db[req.key] = req.value
elif value is not None:
del db[req.key]
- elif isinstance(req, DebugLinkN1W1Read):
+ elif isinstance(req, DebugLinkK1N1Read):
if req.key is not None:
value = db.get(req.key, None)
else:
raise NotImplementedError(req)
- resp = DebugLinkN1W1Response(value=value)
+ resp = DebugLinkK1N1Response(value=value)
print(resp)
req = debug._call(resp)
### core/translations/blank_translations_rules.json
@@ -15,15 +15,15 @@
"description": "THP related strings only in Delizia and Eckhart"
},
{
- "prefix": "n1w1__",
+ "prefix": "k1n1__",
"allowedLayouts": [ "Eckhart" ],
- "description": "N1W1 tag backup only in Eckhart"
+ "description": "K1N1 tag backup only in Eckhart"
},
{
"exact": [
"backup__type_create",
"backup__type_have",
- "backup__type_n1w1",
+ "backup__type_k1n1",
"backup__type_wordlist"
],
"allowedLayouts": [ "Eckhart" ],
### core/translations/cs.json
@@ -197,7 +197,7 @@
},
"backup__type_create": "",
"backup__type_have": "",
- "backup__type_n1w1": "",
+ "backup__type_k1n1": "",
"backup__type_wordlist": "",
"backup__want_to_skip": {
"Bolt": "Určitě chcete přeskočit zálohování?",
@@ -1285,6 +1285,17 @@
"Delizia": "",
"Eckhart": ""
},
+ "k1n1__err_damaged": "",
+ "k1n1__err_empty": "",
+ "k1n1__err_nonempty": "",
+ "k1n1__footer_first": "",
+ "k1n1__footer_last": "",
+ "k1n1__footer_next": "",
+ "k1n1__hold_first": "",
+ "k1n1__hold_last": "",
+ "k1n1__hold_next": "",
+ "k1n1__reading": "",
+ "k1n1__writing": "",
"language__change_to_template": "Změnit jazyk na {0}?",
"language__changed": "Jazyk byl úspěšně změněn.",
"language__progress": "Změna jazyka...",
@@ -1420,17 +1431,6 @@
"monero__wanna_export_watchkey": "Opravdu chcete exportovat údaje pouze pro sledování?",
"monero__wanna_start_refresh": "Opravdu chcete zahájit\nobnovení?",
"monero__wanna_sync_key_images": "Opravdu chcete\nsynchronizovat obrazy klíče?",
- "n1w1__err_damaged": "",
- "n1w1__err_empty": "",
- "n1w1__err_nonempty": "",
- "n1w1__footer_first": "",
- "n1w1__footer_last": "",
- "n1w1__footer_next": "",
- "n1w1__hold_first": "",
- "n1w1__hold_last": "",
- "n1w1__hold_next": "",
- "n1w1__reading": "",
- "n1w1__writing": "",
"nem__absolute": {
"Bolt": "absolutní",
"Caesar": "",
### core/translations/de.json
@@ -207,7 +207,7 @@
"Delizia": "",
"Eckhart": "Welche Art von Wallet-Backup hast du?"
},
- "backup__type_n1w1": "",
+ "backup__type_k1n1": "",
"backup__type_wordlist": "",
"backup__want_to_skip": {
"Bolt": "Möchtest du das Backup wirklich überspringen?",
@@ -1485,6 +1485,17 @@
"Delizia": "",
"Eckhart": ""
},
+ "k1n1__err_damaged": "",
+ "k1n1__err_empty": "",
+ "k1n1__err_nonempty": "",
+ "k1n1__footer_first": "",
+ "k1n1__footer_last": "",
+ "k1n1__footer_next": "",
+ "k1n1__hold_first": "",
+ "k1n1__hold_last": "",
+ "k1n1__hold_next": "",
+ "k1n1__reading": "",
+ "k1n1__writing": "",
"language__change_to_template": "Sprache in {0} ändern?",
"language__changed": "Sprache erfolgreich geändert.",
"language__progress": "Sprache wird geändert...",
@@ -1640,17 +1651,6 @@
"monero__wanna_export_watchkey": "Möchtest du wirklich Watch-Only-Daten exportieren?",
"monero__wanna_start_refresh": "Möchtest du wirklich\ndie Aktualisierung starten?",
"monero__wanna_sync_key_images": "Möchtest du wirklich\ndie Key-Images synchronisieren?",
- "n1w1__err_damaged": "",
- "n1w1__err_empty": "",
- "n1w1__err_nonempty": "",
- "n1w1__footer_first": "",
- "n1w1__footer_last": "",
- "n1w1__footer_next": "",
- "n1w1__hold_first": "",
- "n1w1__hold_last": "",
- "n1w1__hold_next": "",
- "n1w1__reading": "",
- "n1w1__writing": "",
"nem__absolute": {
"Bolt": "absolut",
"Caesar": "",
### core/translations/en.json
@@ -169,11 +169,11 @@
"Delizia": "",
"Eckhart": "Which type of wallet backup do you have?"
},
- "backup__type_n1w1": {
+ "backup__type_k1n1": {
"Bolt": "",
"Caesar": "",
"Delizia": "",
- "Eckhart": "N1W1 backup"
+ "Eckhart": "K1N1 backup"
},
"backup__type_wordlist": {
"Bolt": "",
@@ -1248,6 +1248,72 @@
"Delizia": "",
"Eckhart": ""
},
+ "k1n1__err_damaged": {
+ "Bolt": "",
+ "Caesar": "",
+ "Delizia": "",
+ "Eckhart": "This tag is damaged. Continue to try again or scan the next tag."
+ },
+ "k1n1__err_empty": {
+ "Bolt": "",
+ "Caesar": "",
+ "Delizia": "",
+ "Eckhart": "This tag is empty. Continue to scan a different tag."
+ },
+ "k1n1__err_nonempty": {
+ "Bolt": "",
+ "Caesar": "",
+ "Delizia": "",
+ "Eckhart": "Non-empty K1N1 tag."
+ },
+ "k1n1__footer_first": {
+ "Bolt": "",
+ "Caesar": "",
+ "Delizia": "",
+ "Eckhart": "Start with any tag"
+ },
+ "k1n1__footer_last": {
+ "Bolt": "",
+ "Caesar": "",
+ "Delizia": "",
+ "Eckhart": "Use the last remaining tag"
+ },
+ "k1n1__footer_next": {
+ "Bolt": "",
+ "Caesar": "",
+ "Delizia": "",
+ "Eckhart": "Use any remaining tag"
+ },
+ "k1n1__hold_first": {
+ "Bolt": "",
+ "Caesar": "",
+ "Delizia": "",
+ "Eckhart": "Hold the first tag to the back of this Trezor."
+ },
+ "k1n1__hold_last": {
+ "Bolt": "",
+ "Caesar": "",
+ "Delizia": "",
+ "Eckhart": "Hold the last tag to the back of this Trezor."
+ },
+ "k1n1__hold_next": {
+ "Bolt": "",
+ "Caesar": "",
+ "Delizia": "",
+ "Eckhart": "Hold the next tag to the back of this Trezor."
+ },
+ "k1n1__reading": {
+ "Bolt": "",
+ "Caesar": "",
+ "Delizia": "",
+ "Eckhart": "Reading tag..."
+ },
+ "k1n1__writing": {
+ "Bolt": "",
+ "Caesar": "",
+ "Delizia": "",
+ "Eckhart": "Writing to tag..."
+ },
"language__change_to_template": "Change language to {0}?",
"language__changed": "Language changed successfully.",
"language__progress": "Changing language...",
@@ -1389,72 +1455,6 @@
"monero__wanna_export_watchkey": "Do you really want to export watch-only credentials?",
"monero__wanna_start_refresh": "Do you really want to\nstart refresh?",
"monero__wanna_sync_key_images": "Do you really want to\nsync key images?",
- "n1w1__err_damaged": {
- "Bolt": "",
- "Caesar": "",
- "Delizia": "",
- "Eckhart": "This tag is damaged. Continue to try again or scan the next tag."
- },
- "n1w1__err_empty": {
- "Bolt": "",
- "Caesar": "",
- "Delizia": "",
- "Eckhart": "This tag is empty. Continue to scan a different tag."
- },
- "n1w1__err_nonempty": {
- "Bolt": "",
- "Caesar": "",
- "Delizia": "",
- "Eckhart": "Non-empty N1W1 tag."
- },
- "n1w1__footer_first": {
- "Bolt": "",
- "Caesar": "",
- "Delizia": "",
- "Eckhart": "Start with any tag"
- },
- "n1w1__footer_last": {
- "Bolt": "",
- "Caesar": "",
- "Delizia": "",
- "Eckhart": "Use the last remaining tag"
- },
- "n1w1__footer_next": {
- "Bolt": "",
- "Caesar": "",
- "Delizia": "",
- "Eckhart": "Use any remaining tag"
- },
- "n1w1__hold_first": {
- "Bolt": "",
- "Caesar": "",
- "Delizia": "",
- "Eckhart": "Hold the first tag to the back of this Trezor."
- },
- "n1w1__hold_last": {
- "Bolt": "",
- "Caesar": "",
- "Delizia": "",
- "Eckhart": "Hold the last tag to the back of this Trezor."
- },
- "n1w1__hold_next": {
- "Bolt": "",
- "Caesar": "",
- "Delizia": "",
- "Eckhart": "Hold the next tag to the back of this Trezor."
- },
- "n1w1__reading": {
- "Bolt": "",
- "Caesar": "",
- "Delizia": "",
- "Eckhart": "Reading tag..."
- },
- "n1w1__writing": {
- "Bolt": "",
- "Caesar": "",
- "Delizia": "",
- "Eckhart": "Writing to tag..."
- },
"nem__absolute": {
"Bolt": "absolute",
"Caesar": "",
### core/translations/es.json
@@ -202,7 +202,7 @@
},
"backup__type_create": "",
"backup__type_have": "",
- "backup__type_n1w1": "",
+ "backup__type_k1n1": "",
"backup__type_wordlist": "",
"backup__want_to_skip": {
"Bolt": "¿Quieres omitir el respaldo?",
@@ -1320,6 +1320,17 @@
"Delizia": "",
"Eckhart": ""
},
+ "k1n1__err_damaged": "",
+ "k1n1__err_empty": "",
+ "k1n1__err_nonempty": "",
+ "k1n1__footer_first": "",
+ "k1n1__footer_last": "",
+ "k1n1__footer_next": "",
+ "k1n1__hold_first": "",
+ "k1n1__hold_last": "",
+ "k1n1__hold_next": "",
+ "k1n1__reading": "",
+ "k1n1__writing": "",
"language__change_to_template": "¿Cambiar el idioma a {0}?",
"language__changed": "El idioma cambió con éxito.",
"language__progress": "Cambiando lenguaje...",
@@ -1450,17 +1461,6 @@
"monero__wanna_export_watchkey": "¿Quieres exportar las credenciales de solo lectura?",
"monero__wanna_start_refresh": "¿Quieres iniciar \nla actualización?",
"monero__wanna_sync_key_images": "¿Quieres\nsincronizar imágenes clave?",
- "n1w1__err_damaged": "",
- "n1w1__err_empty": "",
- "n1w1__err_nonempty": "",
- "n1w1__footer_first": "",
- "n1w1__footer_last": "",
- "n1w1__footer_next": "",
- "n1w1__hold_first": "",
- "n1w1__hold_last": "",
- "n1w1__hold_next": "",
- "n1w1__reading": "",
- "n1w1__writing": "",
"nem__absolute": {
"Bolt": "absoluto",
"Caesar": "",
### core/translations/fr.json
@@ -227,7 +227,7 @@
},
"backup__type_create": "",
"backup__type_have": "",
- "backup__type_n1w1": "",
+ "backup__type_k1n1": "",
"backup__type_wordlist": "",
"backup__want_to_skip": {
"Bolt": "Voulez-vous vraiment ignorer la sauvegarde ?",
@@ -1465,6 +1465,17 @@
"Delizia": "",
"Eckhart": ""
},
+ "k1n1__err_damaged": "",
+ "k1n1__err_empty": "",
+ "k1n1__err_nonempty": "",
+ "k1n1__footer_first": "",
+ "k1n1__footer_last": "",
+ "k1n1__footer_next": "",
+ "k1n1__hold_first": "",
+ "k1n1__hold_last": "",
+ "k1n1__hold_next": "",
+ "k1n1__reading": "",
+ "k1n1__writing": "",
"language__change_to_template": "Changer la langue en {0} ?",
"language__changed": "La langue a été changée avec succès.",
"language__progress": "Changement de langue...",
@@ -1600,17 +1611,6 @@
"monero__wanna_export_watchkey": "Voulez-vous vraiment exporter les identifiants en lecture seule ?",
"monero__wanna_start_refresh": "Voulez-vous vraiment\ndémarrer l'actualisation ?",
"monero__wanna_sync_key_images": "Voulez-vous vraiment\nsynchroniser les images clés ?",
- "n1w1__err_damaged": "",
- "n1w1__err_empty": "",
- "n1w1__err_nonempty": "",
- "n1w1__footer_first": "",
- "n1w1__footer_last": "",
- "n1w1__footer_next": "",
- "n1w1__hold_first": "",
- "n1w1__hold_last": "",
- "n1w1__hold_next": "",
- "n1w1__reading": "",
- "n1w1__writing": "",
"nem__absolute": {
"Bolt": "absolu(e)(s)",
"Caesar": "",
### core/translations/id.json
@@ -171,7 +171,7 @@
},
"backup__type_create": "",
"backup__type_have": "",
- "backup__type_n1w1": "",
+ "backup__type_k1n1": "",
"backup__type_wordlist": "",
"backup__want_to_skip": {
"Bolt": "Anda yakin ingin melewati pencadangan?",
@@ -1264,6 +1264,17 @@
"Delizia": "",
"Eckhart": ""
},
+ "k1n1__err_damaged": "",
+ "k1n1__err_empty": "",
+ "k1n1__err_nonempty": "",
+ "k1n1__footer_first": "",
+ "k1n1__footer_last": "",
+ "k1n1__footer_next": "",
+ "k1n1__hold_first": "",
+ "k1n1__hold_last": "",
+ "k1n1__hold_next": "",
+ "k1n1__reading": "",
+ "k1n1__writing": "",
"language__change_to_template": "Ubah bahasa ke {0}?",
"language__changed": "Bahasa berhasil diubah.",
"language__progress": "Mengubah bahasa...",
@@ -1399,17 +1410,6 @@
"monero__wanna_export_watchkey": "Anda yakin ingin mengekspor kredensial watch-only?",
"monero__wanna_start_refresh": "Anda yakin ingin memulai\npemuatan ulang?",
"monero__wanna_sync_key_images": "Anda yakin ingin sync\nkey image?",
- "n1w1__err_damaged": "",
- "n1w1__err_empty": "",
- "n1w1__err_nonempty": "",
- "n1w1__footer_first": "",
- "n1w1__footer_last": "",
- "n1w1__footer_next": "",
- "n1w1__hold_first": "",
- "n1w1__hold_last": "",
- "n1w1__hold_next": "",
- "n1w1__reading": "",
- "n1w1__writing": "",
"nem__absolute": {
"Bolt": "absolut",
"Caesar": "",
### core/translations/order.json
@@ -1185,13 +1185,13 @@
"1183": "ethereum__confirm_contract",
"1184": "words__intent",
"1185": "suite_sync__rotate_key",
- "1186": "n1w1__footer_first",
- "1187": "n1w1__footer_last",
- "1188": "n1w1__footer_next",
- "1189": "n1w1__hold_first",
- "1190": "n1w1__hold_last",
- "1191": "n1w1__hold_next",
- "1192": "n1w1__writing",
+ "1186": "k1n1__footer_first",
+ "1187": "k1n1__footer_last",
+ "1188": "k1n1__footer_next",
+ "1189": "k1n1__hold_first",
+ "1190": "k1n1__hold_last",
+ "1191": "k1n1__hold_next",
+ "1192": "k1n1__writing",
"1193": "ethereum__deposit_amount",
"1194": "ethereum__deposit_to",
"1195": "ethereum__redeem_amount",
@@ -1208,7 +1208,7 @@
"1206": "ethereum__your_address",
"1207": "cardano__credential_intro_template",
"1208": "cardano__key_path",
- "1209": "backup__type_n1w1",
+ "1209": "backup__type_k1n1",
"1210": "backup__type_wordlist",
"1211": "ethereum__title_token_contract",
"1212": "ethereum__redeem",
@@ -1221,10 +1221,10 @@
"1219": "ethereum__calldata_suffix",
"1220": "backup__type_create",
"1221": "backup__type_have",
- "1222": "n1w1__reading",
- "1223": "n1w1__err_empty",
- "1224": "n1w1__err_nonempty",
- "1225": "n1w1__err_damaged",
+ "1222": "k1n1__reading",
+ "1223": "k1n1__err_empty",
+ "1224": "k1n1__err_nonempty",
+ "1225": "k1n1__err_damaged",
"1226": "ripple__account_deletion_warning",
"1227": "ripple__account_to_be_deleted",
"1228": "words__account_deletion",
### core/translations/pt.json
@@ -212,7 +212,7 @@
},
"backup__type_create": "",
"backup__type_have": "",
- "backup__type_n1w1": "",
+ "backup__type_k1n1": "",
"backup__type_wordlist": "",
"backup__want_to_skip": {
"Bolt": "Tem certeza de que deseja pular o backup?",
@@ -1340,6 +1340,17 @@
"Delizia": "",
"Eckhart": ""
},
+ "k1n1__err_damaged": "",
+ "k1n1__err_empty": "",
+ "k1n1__err_nonempty": "",
+ "k1n1__footer_first": "",
+ "k1n1__footer_last": "",
+ "k1n1__footer_next": "",
+ "k1n1__hold_first": "",
+ "k1n1__hold_last": "",
+ "k1n1__hold_next": "",
+ "k1n1__reading": "",
+ "k1n1__writing": "",
"language__change_to_template": "Alterar idioma para {0}?",
"language__changed": "Idioma alterado com sucesso.",
"language__progress": "Alterando idioma...",
@@ -1485,17 +1496,6 @@
"monero__wanna_export_watchkey": "Deseja mesmo exportar credenciais de somente exibição?",
"monero__wanna_start_refresh": "Deseja mesmo\niniciar atualização?",
"monero__wanna_sync_key_images": "Deseja mesmo\nsincronizar imagens de chave?",
- "n1w1__err_damaged": "",
- "n1w1__err_empty": "",
- "n1w1__err_nonempty": "",
- "n1w1__footer_first": "",
- "n1w1__footer_last": "",
- "n1w1__footer_next": "",
- "n1w1__hold_first": "",
- "n1w1__hold_last": "",
- "n1w1__hold_next": "",
- "n1w1__reading": "",
- "n1w1__writing": "",
"nem__absolute": {
"Bolt": "absoluto",
"Caesar": "",
### docs/core/build/xtask.md
@@ -93,7 +93,7 @@ cannot be used bare:
- `--verbose` — verbose cargo output.
- `--xbuild-trace` — log build script progress (executed commands and timings).
- `--apps` — enable external app loading.
-- `--n1w1` — enable N1W1 support.
+- `--k1n1` — enable K1N1 support.
- `--miniscript` — enable experimental Miniscript support.
- `--ward` — enable experimental WARD support.
- `--unsafe-fw` — enable unsafe firmware features.
### legacy/firmware/protob/Makefile
@@ -8,7 +8,7 @@ SKIPPED_MESSAGES := Cardano DebugMonero Eos Monero Ontology Ripple SdProtect Tez
DebugLinkGetPairingInfo DebugLinkPairingInfo DebugLinkGetGcInfo DebugLinkGcInfoItem \
DebugLinkGcInfo DebugLinkRecordScreen DebugLinkEraseSdCard DebugLinkWatchLayout \
DebugLinkLayout DebugLinkResetDebugEvents DebugLinkSetBatteryState \
- DebugLinkN1W1Connected DebugLinkN1W1Read DebugLinkN1W1Write DebugLinkN1W1Response \
+ DebugLinkK1N1Connected DebugLinkK1N1Read DebugLinkK1N1Write DebugLinkK1N1Response \
DebugLinkOptigaSetSecMax DebugLinkSetLogFilter \
GetNonce TxAckInput TxAckOutput TxAckPrev PaymentRequest \
EthereumABITupleInfo EthereumABIValueInfo EthereumERC7730FieldInfo EthereumDisplayFormatInfo EthereumERC7730Path \
### python/src/trezorlib/cli/device.py
@@ -46,7 +46,7 @@
BACKUP_METHOD = {
"display": messages.BackupMethod.Display,
- "n1w1": messages.BackupMethod.N1W1,
+ "k1n1": messages.BackupMethod.K1N1,
}
SD_PROTECT_OPERATIONS = {
### python/src/trezorlib/messages.py
@@ -206,7 +206,7 @@ class BackupType(IntEnum):
class BackupMethod(IntEnum):
Display = 0
- N1W1 = 1
+ K1N1 = 1
class SafetyCheckLevel(IntEnum):
@@ -271,7 +271,7 @@ class Capability(IntEnum):
BLE = 22
NFC = 23
Tron = 24
- N1W1 = 25
+ K1N1 = 25
TouchWakeup = 26
Ethereum_EIP7702 = 28
Miniscript = 29
@@ -664,10 +664,10 @@ class MessageType(IntEnum):
DebugLinkGetPairingInfo = 9011
DebugLinkPairingInfo = 9012
DebugLinkSetLogFilter = 9013
- DebugLinkN1W1Connected = 9014
- DebugLinkN1W1Write = 9015
- DebugLinkN1W1Read = 9016
- DebugLinkN1W1Response = 9017
+ DebugLinkK1N1Connected = 9014
+ DebugLinkK1N1Write = 9015
+ DebugLinkK1N1Read = 9016
+ DebugLinkK1N1Response = 9017
DebugLinkSetBatteryState = 9018
EthereumGetPublicKey = 450
EthereumPublicKey = 451
@@ -4708,11 +4708,11 @@ def __init__(
self.filter = filter
-class DebugLinkN1W1Connected(protobuf.MessageType):
+class DebugLinkK1N1Connected(protobuf.MessageType):
MESSAGE_WIRE_TYPE = 9014
-class DebugLinkN1W1Write(protobuf.MessageType):
+class DebugLinkK1N1Write(protobuf.MessageType):
MESSAGE_WIRE_TYPE = 9015
FIELDS = {
1: protobuf.Field("key", "string", repeated=False, required=False, default=None),
@@ -4729,7 +4729,7 @@ def __init__(
self.value = value
-class DebugLinkN1W1Read(protobuf.MessageType):
+class DebugLinkK1N1Read(protobuf.MessageType):
MESSAGE_WIRE_TYPE = 9016
FIELDS = {
1: protobuf.Field("key", "string", repeated=False, required=False, default=None),
@@ -4743,7 +4743,7 @@ def __init__(
self.key = key
-class DebugLinkN1W1Response(protobuf.MessageType):
+class DebugLinkK1N1Response(protobuf.MessageType):
MESSAGE_WIRE_TYPE = 9017
FIELDS = {
1: protobuf.Field("value", "bytes", repeated=False, required=False, default=None),
### rust/trezor-client/src/messages/generated.rs
@@ -93,10 +93,10 @@ trezor_message_impl! {
DebugLinkGetPairingInfo => MessageType_DebugLinkGetPairingInfo,
DebugLinkPairingInfo => MessageType_DebugLinkPairingInfo,
DebugLinkSetLogFilter => MessageType_DebugLinkSetLogFilter,
- DebugLinkN1W1Connected => MessageType_DebugLinkN1W1Connected,
- DebugLinkN1W1Write => MessageType_DebugLinkN1W1Write,
- DebugLinkN1W1Read => MessageType_DebugLinkN1W1Read,
- DebugLinkN1W1Response => MessageType_DebugLinkN1W1Response,
+ DebugLinkK1N1Connected => MessageType_DebugLinkK1N1Connected,
+ DebugLinkK1N1Write => MessageType_DebugLinkK1N1Write,
+ DebugLinkK1N1Read => MessageType_DebugLinkK1N1Read,
+ DebugLinkK1N1Response => MessageType_DebugLinkK1N1Response,
DebugLinkSetBatteryState => MessageType_DebugLinkSetBatteryState,
ThpCreateNewSession => MessageType_ThpCreateNewSession,
ThpCredentialRequest => MessageType_ThpCredentialRequest,
### rust/trezor-client/src/protos/generated/messages.rs
@@ -245,14 +245,14 @@ pub enum MessageType {
MessageType_DebugLinkPairingInfo = 9012,
// @@protoc_insertion_point(enum_value:hw.trezor.messages.MessageType.MessageType_DebugLinkSetLogFilter)
MessageType_DebugLinkSetLogFilter = 9013,
- // @@protoc_insertion_point(enum_value:hw.trezor.messages.MessageType.MessageType_DebugLinkN1W1Connected)
- MessageType_DebugLinkN1W1Connected = 9014,
- // @@protoc_insertion_point(enum_value:hw.trezor.messages.MessageType.MessageType_DebugLinkN1W1Write)
- MessageType_DebugLinkN1W1Write = 9015,
- // @@protoc_insertion_point(enum_value:hw.trezor.messages.MessageType.MessageType_DebugLinkN1W1Read)
- MessageType_DebugLinkN1W1Read = 9016,
- // @@protoc_insertion_point(enum_value:hw.trezor.messages.MessageType.MessageType_DebugLinkN1W1Response)
- MessageType_DebugLinkN1W1Response = 9017,
+ // @@protoc_insertion_point(enum_value:hw.trezor.messages.MessageType.MessageType_DebugLinkK1N1Connected)
+ MessageType_DebugLinkK1N1Connected = 9014,
+ // @@protoc_insertion_point(enum_value:hw.trezor.messages.MessageType.MessageType_DebugLinkK1N1Write)
+ MessageType_DebugLinkK1N1Write = 9015,
+ // @@protoc_insertion_point(enum_value:hw.trezor.messages.MessageType.MessageType_DebugLinkK1N1Read)
+ MessageType_DebugLinkK1N1Read = 9016,
+ // @@protoc_insertion_point(enum_value:hw.trezor.messages.MessageType.MessageType_DebugLinkK1N1Response)
+ MessageType_DebugLinkK1N1Response = 9017,
// @@protoc_insertion_point(enum_value:hw.trezor.messages.MessageType.MessageType_DebugLinkSetBatteryState)
MessageType_DebugLinkSetBatteryState = 9018,
// @@protoc_insertion_point(enum_value:hw.trezor.messages.MessageType.MessageType_EthereumGetPublicKey)
@@ -763,10 +763,10 @@ impl ::protobuf::Enum for MessageType {
9011 => ::std::option::Option::Some(MessageType::MessageType_DebugLinkGetPairingInfo),
9012 => ::std::option::Option::Some(MessageType::MessageType_DebugLinkPairingInfo),
9013 => ::std::option::Option::Some(MessageType::MessageType_DebugLinkSetLogFilter),
- 9014 => ::std::option::Option::Some(MessageType::MessageType_DebugLinkN1W1Connected),
- 9015 => ::std::option::Option::Some(MessageType::MessageType_DebugLinkN1W1Write),
- 9016 => ::std::option::Option::Some(MessageType::MessageType_DebugLinkN1W1Read),
- 9017 => ::std::option::Option::Some(MessageType::MessageType_DebugLinkN1W1Response),
+ 9014 => ::std::option::Option::Some(MessageType::MessageType_DebugLinkK1N1Connected),
+ 9015 => ::std::option::Option::Some(MessageType::MessageType_DebugLinkK1N1Write),
+ 9016 => ::std::option::Option::Some(MessageType::MessageType_DebugLinkK1N1Read),
+ 9017 => ::std::option::Option::Some(MessageType::MessageType_DebugLinkK1N1Response),
9018 => ::std::option::Option::Some(MessageType::MessageType_DebugLinkSetBatteryState),
450 => ::std::option::Option::Some(MessageType::MessageType_EthereumGetPublicKey),
451 => ::std::option::Option::Some(MessageType::MessageType_EthereumPublicKey),
@@ -1077,10 +1077,10 @@ impl ::protobuf::Enum for MessageType {
"MessageType_DebugLinkGetPairingInfo" => ::std::option::Option::Some(MessageType::MessageType_DebugLinkGetPairingInfo),
"MessageType_DebugLinkPairingInfo" => ::std::option::Option::Some(MessageType::MessageType_DebugLinkPairingInfo),
"MessageType_DebugLinkSetLogFilter" => ::std::option::Option::Some(MessageType::MessageType_DebugLinkSetLogFilter),
- "MessageType_DebugLinkN1W1Connected" => ::std::option::Option::Some(MessageType::MessageType_DebugLinkN1W1Connected),
- "MessageType_DebugLinkN1W1Write" => ::std::option::Option::Some(MessageType::MessageType_DebugLinkN1W1Write),
- "MessageType_DebugLinkN1W1Read" => ::std::option::Option::Some(MessageType::MessageType_DebugLinkN1W1Read),
- "MessageType_DebugLinkN1W1Response" => ::std::option::Option::Some(MessageType::MessageType_DebugLinkN1W1Response),
+ "MessageType_DebugLinkK1N1Connected" => ::std::option::Option::Some(MessageType::MessageType_DebugLinkK1N1Connected),
+ "MessageType_DebugLinkK1N1Write" => ::std::option::Option::Some(MessageType::MessageType_DebugLinkK1N1Write),
+ "MessageType_DebugLinkK1N1Read" => ::std::option::Option::Some(MessageType::MessageType_DebugLinkK1N1Read),
+ "MessageType_DebugLinkK1N1Response" => ::std::option::Option::Some(MessageType::MessageType_DebugLinkK1N1Response),
"MessageType_DebugLinkSetBatteryState" => ::std::option::Option::Some(MessageType::MessageType_DebugLinkSetBatteryState),
"MessageType_EthereumGetPublicKey" => ::std::option::Option::Some(MessageType::MessageType_EthereumGetPublicKey),
"MessageType_EthereumPublicKey" => ::std::option::Option::Some(MessageType::MessageType_EthereumPublicKey),
@@ -1390,10 +1390,10 @@ impl ::protobuf::Enum for MessageType {
MessageType::MessageType_DebugLinkGetPairingInfo,
MessageType::MessageType_DebugLinkPairingInfo,
MessageType::MessageType_DebugLinkSetLogFilter,
- MessageType::MessageType_DebugLinkN1W1Connected,
- MessageType::MessageType_DebugLinkN1W1Write,
- MessageType::MessageType_DebugLinkN1W1Read,
- MessageType::MessageType_DebugLinkN1W1Response,
+ MessageType::MessageType_DebugLinkK1N1Connected,
+ MessageType::MessageType_DebugLinkK1N1Write,
+ MessageType::MessageType_DebugLinkK1N1Read,
+ MessageType::MessageType_DebugLinkK1N1Response,
MessageType::MessageType_DebugLinkSetBatteryState,
MessageType::MessageType_EthereumGetPublicKey,
MessageType::MessageType_EthereumPublicKey,
@@ -1709,10 +1709,10 @@ impl ::protobuf::EnumFull for MessageType {
MessageType::MessageType_DebugLinkGetPairingInfo => 106,
MessageType::MessageType_DebugLinkPairingInfo => 107,
MessageType::MessageType_DebugLinkSetLogFilter => 108,
- MessageType::MessageType_DebugLinkN1W1Connected => 109,
- MessageType::MessageType_DebugLinkN1W1Write => 110,
- MessageType::MessageType_DebugLinkN1W1Read => 111,
- MessageType::MessageType_DebugLinkN1W1Response => 112,
+ MessageType::MessageType_DebugLinkK1N1Connected => 109,
+ MessageType::MessageType_DebugLinkK1N1Write => 110,
+ MessageType::MessageType_DebugLinkK1N1Read => 111,
+ MessageType::MessageType_DebugLinkK1N1Response => 112,
MessageType::MessageType_DebugLinkSetBatteryState => 113,
MessageType::MessageType_EthereumGetPublicKey => 114,
MessageType::MessageType_EthereumPublicKey => 115,
@@ -2059,11 +2059,11 @@ static file_descriptor_proto_data: &'static [u8] = b"\
\x80\xa6\x1d\x01\xa0\xb5\x18\x01\x12/\n\x20MessageType_DebugLinkPairingI\
nfo\x10\xb4F\x1a\x08\x80\xa6\x1d\x01\xa8\xb5\x18\x01\x120\n!MessageType_\
DebugLinkSetLogFilter\x10\xb5F\x1a\x08\x80\xa6\x1d\x01\xa0\xb5\x18\x01\
- \x121\n\"MessageType_DebugLinkN1W1Connected\x10\xb6F\x1a\x08\x80\xa6\x1d\
- \x01\xa0\xb5\x18\x01\x12-\n\x1eMessageType_DebugLinkN1W1Write\x10\xb7F\
+ \x121\n\"MessageType_DebugLinkK1N1Connected\x10\xb6F\x1a\x08\x80\xa6\x1d\
+ \x01\xa0\xb5\x18\x01\x12-\n\x1eMessageType_DebugLinkK1N1Write\x10\xb7F\
\x1a\x08\x80\xa6\x1d\x01\xa8\xb5\x18\x01\x12,\n\x1dMessageType_DebugLink\
- N1W1Read\x10\xb8F\x1a\x08\x80\xa6\x1d\x01\xa8\xb5\x18\x01\x120\n!Message\
- Type_DebugLinkN1W1Response\x10\xb9F\x1a\x08\x80\xa6\x1d\x01\xa0\xb5\x18\
+ K1N1Read\x10\xb8F\x1a\x08\x80\xa6\x1d\x01\xa8\xb5\x18\x01\x120\n!Message\
+ Type_DebugLinkK1N1Response\x10\xb9F\x1a\x08\x80\xa6\x1d\x01\xa0\xb5\x18\
\x01\x123\n$MessageType_DebugLinkSetBatteryState\x10\xbaF\x1a\x08\x80\
\xa6\x1d\x01\xa0\xb5\x18\x01\x12+\n\x20MessageType_EthereumGetPublicKey\
\x10\xc2\x03\x1a\x04\x90\xb5\x18\x01\x12(\n\x1dMessageType_EthereumPubli\
### rust/trezor-client/src/protos/generated/messages_debug.rs
@@ -5352,38 +5352,38 @@ impl ::protobuf::reflect::ProtobufValue for DebugLinkSetLogFilter {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
-// @@protoc_insertion_point(message:hw.trezor.messages.debug.DebugLinkN1W1Connected)
+// @@protoc_insertion_point(message:hw.trezor.messages.debug.DebugLinkK1N1Connected)
#[derive(PartialEq,Clone,Default,Debug)]
-pub struct DebugLinkN1W1Connected {
+pub struct DebugLinkK1N1Connected {
// special fields
- // @@protoc_insertion_point(special_field:hw.trezor.messages.debug.DebugLinkN1W1Connected.special_fields)
+ // @@protoc_insertion_point(special_field:hw.trezor.messages.debug.DebugLinkK1N1Connected.special_fields)
pub special_fields: ::protobuf::SpecialFields,
}
-impl<'a> ::std::default::Default for &'a DebugLinkN1W1Connected {
- fn default() -> &'a DebugLinkN1W1Connected {
- <DebugLinkN1W1Connected as ::protobuf::Message>::default_instance()
+impl<'a> ::std::default::Default for &'a DebugLinkK1N1Connected {
+ fn default() -> &'a DebugLinkK1N1Connected {
+ <DebugLinkK1N1Connected as ::protobuf::Message>::default_instance()
}
}
-impl DebugLinkN1W1Connected {
- pub fn new() -> DebugLinkN1W1Connected {
+impl DebugLinkK1N1Connected {
+ pub fn new() -> DebugLinkK1N1Connected {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(0);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkN1W1Connected>(
- "DebugLinkN1W1Connected",
+ ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkK1N1Connected>(
+ "DebugLinkK1N1Connected",
fields,
oneofs,
)
}
}
-impl ::protobuf::Message for DebugLinkN1W1Connected {
- const NAME: &'static str = "DebugLinkN1W1Connected";
+impl ::protobuf::Message for DebugLinkK1N1Connected {
+ const NAME: &'static str = "DebugLinkK1N1Connected";
fn is_initialized(&self) -> bool {
true
@@ -5422,60 +5422,60 @@ impl ::protobuf::Message for DebugLinkN1W1Connected {
&mut self.special_fields
}
- fn new() -> DebugLinkN1W1Connected {
- DebugLinkN1W1Connected::new()
+ fn new() -> DebugLinkK1N1Connected {
+ DebugLinkK1N1Connected::new()
}
fn clear(&mut self) {
self.special_fields.clear();
}
- fn default_instance() -> &'static DebugLinkN1W1Connected {
- static instance: DebugLinkN1W1Connected = DebugLinkN1W1Connected {
+ fn default_instance() -> &'static DebugLinkK1N1Connected {
+ static instance: DebugLinkK1N1Connected = DebugLinkK1N1Connected {
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
-impl ::protobuf::MessageFull for DebugLinkN1W1Connected {
+impl ::protobuf::MessageFull for DebugLinkK1N1Connected {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
- descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkN1W1Connected").unwrap()).clone()
+ descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkK1N1Connected").unwrap()).clone()
}
}
-impl ::std::fmt::Display for DebugLinkN1W1Connected {
+impl ::std::fmt::Display for DebugLinkK1N1Connected {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
-impl ::protobuf::reflect::ProtobufValue for DebugLinkN1W1Connected {
+impl ::protobuf::reflect::ProtobufValue for DebugLinkK1N1Connected {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
-// @@protoc_insertion_point(message:hw.trezor.messages.debug.DebugLinkN1W1Write)
+// @@protoc_insertion_point(message:hw.trezor.messages.debug.DebugLinkK1N1Write)
#[derive(PartialEq,Clone,Default,Debug)]
-pub struct DebugLinkN1W1Write {
+pub struct DebugLinkK1N1Write {
// message fields
- // @@protoc_insertion_point(field:hw.trezor.messages.debug.DebugLinkN1W1Write.key)
+ // @@protoc_insertion_point(field:hw.trezor.messages.debug.DebugLinkK1N1Write.key)
pub key: ::std::option::Option<::std::string::String>,
- // @@protoc_insertion_point(field:hw.trezor.messages.debug.DebugLinkN1W1Write.value)
+ // @@protoc_insertion_point(field:hw.trezor.messages.debug.DebugLinkK1N1Write.value)
pub value: ::std::option::Option<::std::vec::Vec<u8>>,
// special fields
- // @@protoc_insertion_point(special_field:hw.trezor.messages.debug.DebugLinkN1W1Write.special_fields)
+ // @@protoc_insertion_point(special_field:hw.trezor.messages.debug.DebugLinkK1N1Write.special_fields)
pub special_fields: ::protobuf::SpecialFields,
}
-impl<'a> ::std::default::Default for &'a DebugLinkN1W1Write {
- fn default() -> &'a DebugLinkN1W1Write {
- <DebugLinkN1W1Write as ::protobuf::Message>::default_instance()
+impl<'a> ::std::default::Default for &'a DebugLinkK1N1Write {
+ fn default() -> &'a DebugLinkK1N1Write {
+ <DebugLinkK1N1Write as ::protobuf::Message>::default_instance()
}
}
-impl DebugLinkN1W1Write {
- pub fn new() -> DebugLinkN1W1Write {
+impl DebugLinkK1N1Write {
+ pub fn new() -> DebugLinkK1N1Write {
::std::default::Default::default()
}
@@ -5556,24 +5556,24 @@ impl DebugLinkN1W1Write {
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"key",
- |m: &DebugLinkN1W1Write| { &m.key },
- |m: &mut DebugLinkN1W1Write| { &mut m.key },
+ |m: &DebugLinkK1N1Write| { &m.key },
+ |m: &mut DebugLinkK1N1Write| { &mut m.key },
));
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"value",
- |m: &DebugLinkN1W1Write| { &m.value },
- |m: &mut DebugLinkN1W1Write| { &mut m.value },
+ |m: &DebugLinkK1N1Write| { &m.value },
+ |m: &mut DebugLinkK1N1Write| { &mut m.value },
));
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkN1W1Write>(
- "DebugLinkN1W1Write",
+ ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkK1N1Write>(
+ "DebugLinkK1N1Write",
fields,
oneofs,
)
}
}
-impl ::protobuf::Message for DebugLinkN1W1Write {
- const NAME: &'static str = "DebugLinkN1W1Write";
+impl ::protobuf::Message for DebugLinkK1N1Write {
+ const NAME: &'static str = "DebugLinkK1N1Write";
fn is_initialized(&self) -> bool {
true
@@ -5630,8 +5630,8 @@ impl ::protobuf::Message for DebugLinkN1W1Write {
&mut self.special_fields
}
- fn new() -> DebugLinkN1W1Write {
- DebugLinkN1W1Write::new()
+ fn new() -> DebugLinkK1N1Write {
+ DebugLinkK1N1Write::new()
}
fn clear(&mut self) {
@@ -5640,8 +5640,8 @@ impl ::protobuf::Message for DebugLinkN1W1Write {
self.special_fields.clear();
}
- fn default_instance() -> &'static DebugLinkN1W1Write {
- static instance: DebugLinkN1W1Write = DebugLinkN1W1Write {
+ fn default_instance() -> &'static DebugLinkK1N1Write {
+ static instance: DebugLinkK1N1Write = DebugLinkK1N1Write {
key: ::std::option::Option::None,
value: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
@@ -5650,42 +5650,42 @@ impl ::protobuf::Message for DebugLinkN1W1Write {
}
}
-impl ::protobuf::MessageFull for DebugLinkN1W1Write {
+impl ::protobuf::MessageFull for DebugLinkK1N1Write {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
- descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkN1W1Write").unwrap()).clone()
+ descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkK1N1Write").unwrap()).clone()
}
}
-impl ::std::fmt::Display for DebugLinkN1W1Write {
+impl ::std::fmt::Display for DebugLinkK1N1Write {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
-impl ::protobuf::reflect::ProtobufValue for DebugLinkN1W1Write {
+impl ::protobuf::reflect::ProtobufValue for DebugLinkK1N1Write {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
-// @@protoc_insertion_point(message:hw.trezor.messages.debug.DebugLinkN1W1Read)
+// @@protoc_insertion_point(message:hw.trezor.messages.debug.DebugLinkK1N1Read)
#[derive(PartialEq,Clone,Default,Debug)]
-pub struct DebugLinkN1W1Read {
+pub struct DebugLinkK1N1Read {
// message fields
- // @@protoc_insertion_point(field:hw.trezor.messages.debug.DebugLinkN1W1Read.key)
+ // @@protoc_insertion_point(field:hw.trezor.messages.debug.DebugLinkK1N1Read.key)
pub key: ::std::option::Option<::std::string::String>,
// special fields
- // @@protoc_insertion_point(special_field:hw.trezor.messages.debug.DebugLinkN1W1Read.special_fields)
+ // @@protoc_insertion_point(special_field:hw.trezor.messages.debug.DebugLinkK1N1Read.special_fields)
pub special_fields: ::protobuf::SpecialFields,
}
-impl<'a> ::std::default::Default for &'a DebugLinkN1W1Read {
- fn default() -> &'a DebugLinkN1W1Read {
- <DebugLinkN1W1Read as ::protobuf::Message>::default_instance()
+impl<'a> ::std::default::Default for &'a DebugLinkK1N1Read {
+ fn default() -> &'a DebugLinkK1N1Read {
+ <DebugLinkK1N1Read as ::protobuf::Message>::default_instance()
}
}
-impl DebugLinkN1W1Read {
- pub fn new() -> DebugLinkN1W1Read {
+impl DebugLinkK1N1Read {
+ pub fn new() -> DebugLinkK1N1Read {
::std::default::Default::default()
}
@@ -5730,19 +5730,19 @@ impl DebugLinkN1W1Read {
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"key",
- |m: &DebugLinkN1W1Read| { &m.key },
- |m: &mut DebugLinkN1W1Read| { &mut m.key },
+ |m: &DebugLinkK1N1Read| { &m.key },
+ |m: &mut DebugLinkK1N1Read| { &mut m.key },
));
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkN1W1Read>(
- "DebugLinkN1W1Read",
+ ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkK1N1Read>(
+ "DebugLinkK1N1Read",
fields,
oneofs,
)
}
}
-impl ::protobuf::Message for DebugLinkN1W1Read {
- const NAME: &'static str = "DebugLinkN1W1Read";
+impl ::protobuf::Message for DebugLinkK1N1Read {
+ const NAME: &'static str = "DebugLinkK1N1Read";
fn is_initialized(&self) -> bool {
true
@@ -5790,60 +5790,60 @@ impl ::protobuf::Message for DebugLinkN1W1Read {
&mut self.special_fields
}
- fn new() -> DebugLinkN1W1Read {
- DebugLinkN1W1Read::new()
+ fn new() -> DebugLinkK1N1Read {
+ DebugLinkK1N1Read::new()
}
fn clear(&mut self) {
self.key = ::std::option::Option::None;
self.special_fields.clear();
}
- fn default_instance() -> &'static DebugLinkN1W1Read {
- static instance: DebugLinkN1W1Read = DebugLinkN1W1Read {
+ fn default_instance() -> &'static DebugLinkK1N1Read {
+ static instance: DebugLinkK1N1Read = DebugLinkK1N1Read {
key: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
-impl ::protobuf::MessageFull for DebugLinkN1W1Read {
+impl ::protobuf::MessageFull for DebugLinkK1N1Read {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
- descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkN1W1Read").unwrap()).clone()
+ descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkK1N1Read").unwrap()).clone()
}
}
-impl ::std::fmt::Display for DebugLinkN1W1Read {
+impl ::std::fmt::Display for DebugLinkK1N1Read {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
-impl ::protobuf::reflect::ProtobufValue for DebugLinkN1W1Read {
+impl ::protobuf::reflect::ProtobufValue for DebugLinkK1N1Read {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
-// @@protoc_insertion_point(message:hw.trezor.messages.debug.DebugLinkN1W1Response)
+// @@protoc_insertion_point(message:hw.trezor.messages.debug.DebugLinkK1N1Response)
#[derive(PartialEq,Clone,Default,Debug)]
-pub struct DebugLinkN1W1Response {
+pub struct DebugLinkK1N1Response {
// message fields
- // @@protoc_insertion_point(field:hw.trezor.messages.debug.DebugLinkN1W1Response.value)
+ // @@protoc_insertion_point(field:hw.trezor.messages.debug.DebugLinkK1N1Response.value)
pub value: ::std::option::Option<::std::vec::Vec<u8>>,
// special fields
- // @@protoc_insertion_point(special_field:hw.trezor.messages.debug.DebugLinkN1W1Response.special_fields)
+ // @@protoc_insertion_point(special_field:hw.trezor.messages.debug.DebugLinkK1N1Response.special_fields)
pub special_fields: ::protobuf::SpecialFields,
}
-impl<'a> ::std::default::Default for &'a DebugLinkN1W1Response {
- fn default() -> &'a DebugLinkN1W1Response {
- <DebugLinkN1W1Response as ::protobuf::Message>::default_instance()
+impl<'a> ::std::default::Default for &'a DebugLinkK1N1Response {
+ fn default() -> &'a DebugLinkK1N1Response {
+ <DebugLinkK1N1Response as ::protobuf::Message>::default_instance()
}
}
-impl DebugLinkN1W1Response {
- pub fn new() -> DebugLinkN1W1Response {
+impl DebugLinkK1N1Response {
+ pub fn new() -> DebugLinkK1N1Response {
::std::default::Default::default()
}
@@ -5888,19 +5888,19 @@ impl DebugLinkN1W1Response {
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
"value",
- |m: &DebugLinkN1W1Response| { &m.value },
- |m: &mut DebugLinkN1W1Response| { &mut m.value },
+ |m: &DebugLinkK1N1Response| { &m.value },
+ |m: &mut DebugLinkK1N1Response| { &mut m.value },
));
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkN1W1Response>(
- "DebugLinkN1W1Response",
+ ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DebugLinkK1N1Response>(
+ "DebugLinkK1N1Response",
fields,
oneofs,
)
}
}
-impl ::protobuf::Message for DebugLinkN1W1Response {
- const NAME: &'static str = "DebugLinkN1W1Response";
+impl ::protobuf::Message for DebugLinkK1N1Response {
+ const NAME: &'static str = "DebugLinkK1N1Response";
fn is_initialized(&self) -> bool {
true
@@ -5948,38 +5948,38 @@ impl ::protobuf::Message for DebugLinkN1W1Response {
&mut self.special_fields
}
- fn new() -> DebugLinkN1W1Response {
- DebugLinkN1W1Response::new()
+ fn new() -> DebugLinkK1N1Response {
+ DebugLinkK1N1Response::new()
}
fn clear(&mut self) {
self.value = ::std::option::Option::None;
self.special_fields.clear();
}
- fn default_instance() -> &'static DebugLinkN1W1Response {
- static instance: DebugLinkN1W1Response = DebugLinkN1W1Response {
+ fn default_instance() -> &'static DebugLinkK1N1Response {
+ static instance: DebugLinkK1N1Response = DebugLinkK1N1Response {
value: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
-impl ::protobuf::MessageFull for DebugLinkN1W1Response {
+impl ::protobuf::MessageFull for DebugLinkK1N1Response {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
- descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkN1W1Response").unwrap()).clone()
+ descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugLinkK1N1Response").unwrap()).clone()
}
}
-impl ::std::fmt::Display for DebugLinkN1W1Response {
+impl ::std::fmt::Display for DebugLinkK1N1Response {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
-impl ::protobuf::reflect::ProtobufValue for DebugLinkN1W1Response {
+impl ::protobuf::reflect::ProtobufValue for DebugLinkK1N1Response {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
@@ -6059,10 +6059,10 @@ static file_descriptor_proto_data: &'static [u8] = b"\
inkGcInfo.DebugLinkGcInfoItemR\x05items\x1a?\n\x13DebugLinkGcInfoItem\
\x12\x12\n\x04name\x18\x01\x20\x02(\tR\x04name\x12\x14\n\x05value\x18\
\x02\x20\x02(\x04R\x05value\"/\n\x15DebugLinkSetLogFilter\x12\x16\n\x06f\
- ilter\x18\x01\x20\x01(\tR\x06filter\"\x18\n\x16DebugLinkN1W1Connected\"<\
- \n\x12DebugLinkN1W1Write\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\
- \x14\n\x05value\x18\x02\x20\x01(\x0cR\x05value\"%\n\x11DebugLinkN1W1Read\
- \x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\"-\n\x15DebugLinkN1W1Respon\
+ ilter\x18\x01\x20\x01(\tR\x06filter\"\x18\n\x16DebugLinkK1N1Connected\"<\
+ \n\x12DebugLinkK1N1Write\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\
+ \x14\n\x05value\x18\x02\x20\x01(\x0cR\x05value\"%\n\x11DebugLinkK1N1Read\
+ \x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\"-\n\x15DebugLinkK1N1Respon\
se\x12\x14\n\x05value\x18\x01\x20\x01(\x0cR\x05valueB=\n#com.satoshilabs\
.trezor.lib.protobufB\x12TrezorMessageDebug\x80\xa6\x1d\x01\
";
@@ -6108,10 +6108,10 @@ pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
messages.push(DebugLinkGetGcInfo::generated_message_descriptor_data());
messages.push(DebugLinkGcInfo::generated_message_descriptor_data());
messages.push(DebugLinkSetLogFilter::generated_message_descriptor_data());
- messages.push(DebugLinkN1W1Connected::generated_message_descriptor_data());
- messages.push(DebugLinkN1W1Write::generated_message_descriptor_data());
- messages.push(DebugLinkN1W1Read::generated_message_descriptor_data());
- messages.push(DebugLinkN1W1Response::generated_message_descriptor_data());
+ messages.push(DebugLinkK1N1Connected::generated_message_descriptor_data());
+ messages.push(DebugLinkK1N1Write::generated_message_descriptor_data());
+ messages.push(DebugLinkK1N1Read::generated_message_descriptor_data());
+ messages.push(DebugLinkK1N1Response::generated_message_descriptor_data());
messages.push(debug_link_gc_info::DebugLinkGcInfoItem::generated_message_descriptor_data());
let mut enums = ::std::vec::Vec::with_capacity(5);
enums.push(debug_link_decision::DebugSwipeDirection::generated_enum_descriptor_data());
### rust/trezor-client/src/protos/generated/messages_management.rs
@@ -3128,8 +3128,8 @@ pub mod features {
Capability_NFC = 23,
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.Capability.Capability_Tron)
Capability_Tron = 24,
- // @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.Capability.Capability_N1W1)
- Capability_N1W1 = 25,
+ // @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.Capability.Capability_K1N1)
+ Capability_K1N1 = 25,
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.Capability.Capability_TouchWakeup)
Capability_TouchWakeup = 26,
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.Features.Capability.Capability_Ethereum_EIP7702)
@@ -3171,7 +3171,7 @@ pub mod features {
22 => ::std::option::Option::Some(Capability::Capability_BLE),
23 => ::std::option::Option::Some(Capability::Capability_NFC),
24 => ::std::option::Option::Some(Capability::Capability_Tron),
- 25 => ::std::option::Option::Some(Capability::Capability_N1W1),
+ 25 => ::std::option::Option::Some(Capability::Capability_K1N1),
26 => ::std::option::Option::Some(Capability::Capability_TouchWakeup),
28 => ::std::option::Option::Some(Capability::Capability_Ethereum_EIP7702),
29 => ::std::option::Option::Some(Capability::Capability_Miniscript),
@@ -3205,7 +3205,7 @@ pub mod features {
"Capability_BLE" => ::std::option::Option::Some(Capability::Capability_BLE),
"Capability_NFC" => ::std::option::Option::Some(Capability::Capability_NFC),
"Capability_Tron" => ::std::option::Option::Some(Capability::Capability_Tron),
- "Capability_N1W1" => ::std::option::Option::Some(Capability::Capability_N1W1),
+ "Capability_K1N1" => ::std::option::Option::Some(Capability::Capability_K1N1),
"Capability_TouchWakeup" => ::std::option::Option::Some(Capability::Capability_TouchWakeup),
"Capability_Ethereum_EIP7702" => ::std::option::Option::Some(Capability::Capability_Ethereum_EIP7702),
"Capability_Miniscript" => ::std::option::Option::Some(Capability::Capability_Miniscript),
@@ -3238,7 +3238,7 @@ pub mod features {
Capability::Capability_BLE,
Capability::Capability_NFC,
Capability::Capability_Tron,
- Capability::Capability_N1W1,
+ Capability::Capability_K1N1,
Capability::Capability_TouchWakeup,
Capability::Capability_Ethereum_EIP7702,
Capability::Capability_Miniscript,
@@ -3277,7 +3277,7 @@ pub mod features {
Capability::Capability_BLE => 21,
Capability::Capability_NFC => 22,
Capability::Capability_Tron => 23,
- Capability::Capability_N1W1 => 24,
+ Capability::Capability_K1N1 => 24,
Capability::Capability_TouchWakeup => 25,
Capability::Capability_Ethereum_EIP7702 => 26,
Capability::Capability_Miniscript => 27,
@@ -13105,8 +13105,8 @@ impl BackupType {
pub enum BackupMethod {
// @@protoc_insertion_point(enum_value:hw.trezor.messages.management.BackupMethod.Display)
Display = 0,
- // @@protoc_insertion_point(enum_value:hw.trezor.messages.management.BackupMethod.N1W1)
- N1W1 = 1,
+ // @@protoc_insertion_point(enum_value:hw.trezor.messages.management.BackupMethod.K1N1)
+ K1N1 = 1,
}
impl ::protobuf::Enum for BackupMethod {
@@ -13119,22 +13119,22 @@ impl ::protobuf::Enum for BackupMethod {
fn from_i32(value: i32) -> ::std::option::Option<BackupMethod> {
match value {
0 => ::std::option::Option::Some(BackupMethod::Display),
- 1 => ::std::option::Option::Some(BackupMethod::N1W1),
+ 1 => ::std::option::Option::Some(BackupMethod::K1N1),
_ => ::std::option::Option::None
}
}
fn from_str(str: &str) -> ::std::option::Option<BackupMethod> {
match str {
"Display" => ::std::option::Option::Some(BackupMethod::Display),
- "N1W1" => ::std::option::Option::Some(BackupMethod::N1W1),
+ "K1N1" => ::std::option::Option::Some(BackupMethod::K1N1),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [BackupMethod] = &[
BackupMethod::Display,
- BackupMethod::N1W1,
+ BackupMethod::K1N1,
];
}
@@ -13530,7 +13530,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\
apability_Haptic\x10\x15\x1a\x04\x80\xa6\x1d\x01\x12\x18\n\x0eCapability\
_BLE\x10\x16\x1a\x04\x80\xa6\x1d\x01\x12\x18\n\x0eCapability_NFC\x10\x17\
\x1a\x04\x80\xa6\x1d\x01\x12\x13\n\x0fCapability_Tron\x10\x18\x12\x19\n\
- \x0fCapability_N1W1\x10\x19\x1a\x04\x80\xa6\x1d\x01\x12\x20\n\x16Capabil\
+ \x0fCapability_K1N1\x10\x19\x1a\x04\x80\xa6\x1d\x01\x12\x20\n\x16Capabil\
ity_TouchWakeup\x10\x1a\x1a\x04\x80\xa6\x1d\x01\x12\x1f\n\x1bCapability_\
Ethereum_EIP7702\x10\x1c\x12\x1f\n\x15Capability_Miniscript\x10\x1d\x1a\
\x04\x80\xa6\x1d\x01\x1a\x04\xc8\xf3\x18\x01\"\x04\x08\x1b\x10\x1b\"\x0c\
@@ -13659,7 +13659,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\
\x0cSlip39_Basic\x10\x01\x12\x13\n\x0fSlip39_Advanced\x10\x02\x12\x1c\n\
\x18Slip39_Single_Extendable\x10\x03\x12\x1b\n\x17Slip39_Basic_Extendabl\
e\x10\x04\x12\x1e\n\x1aSlip39_Advanced_Extendable\x10\x05*%\n\x0cBackupM\
- ethod\x12\x0b\n\x07Display\x10\0\x12\x08\n\x04N1W1\x10\x01*G\n\x10Safety\
+ ethod\x12\x0b\n\x07Display\x10\0\x12\x08\n\x04K1N1\x10\x01*G\n\x10Safety\
CheckLevel\x12\n\n\x06Strict\x10\0\x12\x10\n\x0cPromptAlways\x10\x01\x12\
\x15\n\x11PromptTemporarily\x10\x02*=\n\x0fDisplayRotation\x12\t\n\x05No\
rth\x10\0\x12\x08\n\x04East\x10Z\x12\n\n\x05South\x10\xb4\x01\x12\t\n\
### tests/conftest.py
@@ -724,7 +724,7 @@ def device_handler(
pytest.param(arg, id=arg.name)
for arg in [
messages.BackupMethod.Display,
- messages.BackupMethod.N1W1,
+ messages.BackupMethod.K1N1,
]
]
@@ -737,7 +737,7 @@ def backup_method(request, _raw_test_ctx: TrezorTestContext) -> messages.BackupM
See https://docs.pytest.org/en/stable/how-to/fixtures.html#parametrizing-fixtures.
"""
REQUIRED_CAPABILITY = {
- messages.BackupMethod.N1W1: messages.Capability.N1W1,
+ messages.BackupMethod.K1N1: messages.Capability.K1N1,
}
method: messages.BackupMethod = request.param
if (capability := REQUIRED_CAPABILITY.get(method)) is not None:
### tests/device_tests/reset_recovery/test_recovery_restart.py
@@ -37,7 +37,7 @@ def flow():
# the device is now in recovery mode
expected_br_names = {
BackupMethod.Display: ("recovery_word_count", "recovery"),
- BackupMethod.N1W1: ("backup_read",),
+ BackupMethod.K1N1: ("backup_read",),
}[backup_method]
assert (yield).name in expected_br_names
# abort current workflow, but remain in recovery
@@ -61,15 +61,15 @@ def flow():
# Interact only via DebugLink
homescreen_content = debug.read_layout().text_content()
- if Capability.N1W1 in session.features.capabilities:
+ if Capability.K1N1 in session.features.capabilities:
# Recovery homescreen = choose backup method:
assert TR.backup__type_have in homescreen_content
- assert TR.backup__type_n1w1 in homescreen_content
+ assert TR.backup__type_k1n1 in homescreen_content
assert TR.backup__type_wordlist in homescreen_content
# Move to the next layout from recovery homescreen
buttons = debug.screen_buttons.word_check_words()
coords = {
- BackupMethod.N1W1: buttons[0],
+ BackupMethod.K1N1: buttons[0],
BackupMethod.Display: buttons[1],
}[backup_method]
debug.click(coords)
### tests/input_flows.py
@@ -62,7 +62,7 @@
EthereumFlow,
PinFlow,
RecoveryFlow,
- n1w1_handle_write,
+ k1n1_handle_write,
read_caesar_menu_item,
)
@@ -2009,9 +2009,9 @@ def input_flow_common(self) -> BRGeneratorType:
# 2. Backup warning
yield from click_through(self.debug, screens=2, code=B.ResetDevice)
self.mnemonic = yield from get_mnemonic(self.debug)
- elif self.method is messages.BackupMethod.N1W1:
+ elif self.method is messages.BackupMethod.K1N1:
assert (yield).name == "backup_write"
- self.mnemonic = n1w1_handle_write(self.debug).decode()
+ self.mnemonic = k1n1_handle_write(self.debug).decode()
br = yield
assert br.name == "success_backup"
assert br.code == B.Success
@@ -2076,14 +2076,14 @@ def input_flow_eckhart(self) -> BRGeneratorType:
# mnemonic phrases and rest
self.mnemonic = yield from get_mnemonic(self.debug)
- elif self.method is messages.BackupMethod.N1W1:
+ elif self.method is messages.BackupMethod.K1N1:
# 1. Confirm Reset
# 2. Wallet created
# 3. Backup your seed
yield from click_through(self.debug, screens=3, code=B.ResetDevice)
- # 4. Backup using N1W1
+ # 4. Backup using K1N1
assert (yield).name == "backup_write"
- self.mnemonic = n1w1_handle_write(self.debug).decode()
+ self.mnemonic = k1n1_handle_write(self.debug).decode()
# 5. Success
br = yield
assert br.name == "success_backup"
@@ -2197,9 +2197,9 @@ def load_N_shares(
assert br.name == expected_br_name
debug.press_yes()
- elif method is messages.BackupMethod.N1W1:
+ elif method is messages.BackupMethod.K1N1:
assert (yield).name == "backup_write"
- mnemonics.append(n1w1_handle_write(debug).decode())
+ mnemonics.append(k1n1_handle_write(debug).decode())
else:
raise RuntimeError
@@ -2232,9 +2232,9 @@ def load_N_groups(
yield from swipe_if_necessary(debug, B.Success, expected_br_name)
debug.press_yes()
- elif method is messages.BackupMethod.N1W1:
+ elif method is messages.BackupMethod.K1N1:
assert (yield).name == "backup_write"
- group_mnemonics.append(n1w1_handle_write(debug).decode())
+ group_mnemonics.append(k1n1_handle_write(debug).decode())
else:
raise RuntimeError
mnemonics.append(group_mnemonics)
@@ -2350,7 +2350,7 @@ def input_flow_delizia(self) -> BRGeneratorType:
def input_flow_eckhart(self) -> BRGeneratorType:
assert self.method in (
messages.BackupMethod.Display,
- messages.BackupMethod.N1W1,
+ messages.BackupMethod.K1N1,
)
if self.repeated:
# intro confirmation screen
@@ -2458,7 +2458,7 @@ def input_flow_delizia(self) -> BRGeneratorType:
def input_flow_eckhart(self) -> BRGeneratorType:
num_screens = {
messages.BackupMethod.Display: 10,
- messages.BackupMethod.N1W1: 8,
+ messages.BackupMethod.K1N1: 8,
}[self.method]
# 1. Confirm Reset
# 2. Wallet Created
@@ -2562,7 +2562,7 @@ def input_flow_eckhart(self) -> BRGeneratorType:
yield # Confirm show seeds
self.debug.press_yes()
- elif self.backup_method is messages.BackupMethod.N1W1:
+ elif self.backup_method is messages.BackupMethod.K1N1:
if self.share_count > 1:
assert (yield).name == "warning_shamir_backup"
self.debug.press_yes()
@@ -2607,7 +2607,7 @@ def input_flow_common(self) -> BRGeneratorType:
# 3. Never make digital copies
yield
self.debug.press_yes()
- elif self.backup_method is not messages.BackupMethod.N1W1:
+ elif self.backup_method is not messages.BackupMethod.K1N1:
raise RuntimeError
# Mnemonic phrases
@@ -2628,9 +2628,9 @@ def load_5_groups_5_shares(
# Phrase screen
mnemonic = yield from read_and_confirm_mnemonic(debug)
assert mnemonic is not None
- elif backup_method is messages.BackupMethod.N1W1:
+ elif backup_method is messages.BackupMethod.K1N1:
assert (yield).name == "backup_write"
- mnemonic = n1w1_handle_write(debug).decode()
+ mnemonic = k1n1_handle_write(debug).decode()
else:
raise RuntimeError
mnemonics.append(mnemonic)
@@ -2824,7 +2824,7 @@ def __init__(
def input_flow_bolt(self) -> BRGeneratorType:
assert self.method in (
messages.BackupMethod.Display,
- messages.BackupMethod.N1W1,
+ messages.BackupMethod.K1N1,
)
if self.method is messages.BackupMethod.Display:
assert (yield).name == "backup_intro"
@@ -2956,7 +2956,7 @@ def input_flow_caesar(self) -> BRGeneratorType:
def input_flow_delizia(self) -> BRGeneratorType:
assert self.method in (
messages.BackupMethod.Display,
- messages.BackupMethod.N1W1,
+ messages.BackupMethod.K1N1,
)
if self.method is messages.BackupMethod.Display:
assert (yield).name == "backup_intro"
@@ -3041,7 +3041,7 @@ def input_flow_delizia(self) -> BRGeneratorType:
def input_flow_eckhart(self) -> BRGeneratorType:
assert self.method in (
messages.BackupMethod.Display,
- messages.BackupMethod.N1W1,
+ messages.BackupMethod.K1N1,
)
if self.method is messages.BackupMethod.Display:
assert (yield).name == "backup_intro"
@@ -3119,7 +3119,7 @@ def __init__(
def input_flow_bolt(self) -> BRGeneratorType:
assert self.method in (
messages.BackupMethod.Display,
- messages.BackupMethod.N1W1,
+ messages.BackupMethod.K1N1,
)
if self.method is messages.BackupMethod.Display:
assert (yield).name == "backup_intro"
@@ -3317,7 +3317,7 @@ def input_flow_caesar(self) -> BRGeneratorType:
def input_flow_delizia(self) -> BRGeneratorType:
assert self.method in (
messages.BackupMethod.Display,
- messages.BackupMethod.N1W1,
+ messages.BackupMethod.K1N1,
)
if self.method is messages.BackupMethod.Display:
assert (yield).name == "backup_intro"
@@ -3428,7 +3428,7 @@ def input_flow_delizia(self) -> BRGeneratorType:
def input_flow_eckhart(self) -> BRGeneratorType:
assert self.method in (
messages.BackupMethod.Display,
- messages.BackupMethod.N1W1,
+ messages.BackupMethod.K1N1,
)
if self.method is messages.BackupMethod.Display:
assert (yield).name == "backup_intro"
@@ -3627,7 +3627,7 @@ def input_flow_eckhart(self) -> BRGeneratorType:
# 20. Confirm show seeds (only for BackupMethod.Display)
screens = {
messages.BackupMethod.Display: 20,
- messages.BackupMethod.N1W1: 18,
+ messages.BackupMethod.K1N1: 18,
}[self.method]
yield from click_through(self.debug, screens=screens, code=B.ResetDevice)
### tests/input_flows_helpers.py
@@ -392,10 +392,10 @@ def input_mnemonic(
assert "MnemonicKeyboard" in self.debug.read_layout().all_components()
for _, word in enumerate(mnemonic):
self.debug.input(word)
- elif method is messages.BackupMethod.N1W1:
+ elif method is messages.BackupMethod.K1N1:
assert br.code == B.Other
assert br.name == "backup_read"
- n1w1_handle_read(self.debug, " ".join(mnemonic).encode())
+ k1n1_handle_read(self.debug, " ".join(mnemonic).encode())
else:
raise RuntimeError
@@ -767,20 +767,20 @@ def check_address():
raise ValueError("Unknown model!")
-def n1w1_handle_write(debug: DebugLink) -> bytes:
- assert debug._call(messages.DebugLinkN1W1Connected()) == messages.DebugLinkN1W1Read(
+def k1n1_handle_write(debug: DebugLink) -> bytes:
+ assert debug._call(messages.DebugLinkK1N1Connected()) == messages.DebugLinkK1N1Read(
key="mnemonic"
)
write = debug._call(
- messages.DebugLinkN1W1Response(), expect=messages.DebugLinkN1W1Write
+ messages.DebugLinkK1N1Response(), expect=messages.DebugLinkK1N1Write
)
assert write.key == "mnemonic" and write.value is not None
- assert debug._call(messages.DebugLinkN1W1Response(), expect=messages.Success)
+ assert debug._call(messages.DebugLinkK1N1Response(), expect=messages.Success)
return write.value
-def n1w1_handle_read(debug: DebugLink, value: bytes | None) -> None:
- assert debug._call(messages.DebugLinkN1W1Connected()) == messages.DebugLinkN1W1Read(
+def k1n1_handle_read(debug: DebugLink, value: bytes | None) -> None:
+ assert debug._call(messages.DebugLinkK1N1Connected()) == messages.DebugLinkK1N1Read(
key="mnemonic"
)
- debug._call(messages.DebugLinkN1W1Response(value=value), expect=messages.Success)
+ debug._call(messages.DebugLinkK1N1Response(value=value), expect=messages.Success)Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.