1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-16 04:29:08 +00:00
trezor-firmware/tools/snippets
2024-09-19 10:17:21 +03:00
..
eth_defs_unpack.py feat(python): support external Ethereum definitions 2023-03-24 13:24:46 +01:00
font_multiplier.py feat(all): add UI for Model R 2023-05-31 10:14:54 +02:00
local_cache_attribute.py feat(snippet): converter for local_cache_attribute 2022-11-10 14:08:28 +01:00
monero_unused_functions.py snippet: unused Monero mapping 2022-05-16 12:37:24 +02:00
README.md fix(core): include valid staging certificate for T3T1 emulator 2024-06-25 13:35:16 +02:00
recalc_optiga_for_emulator.py fix(core): include valid staging certificate for T3T1 emulator 2024-06-25 13:35:16 +02:00
sign_tx.py fix: clarify how to break out of build_tx loops 2024-09-19 10:17:21 +03:00
unify_test_files.py chore(tests): add new conventions for test files unification 2022-02-07 14:05:27 +01:00

Snippets

This folder is storing non-essential scripts (snippets, gists), which may however come in handy in a year or two.

These scripts do not need to have a high standard, but each of those should have a short description of what is it doing.

sign_tx.py

  • signing of BTC transactions that can be spent with currently connected device
  • need to specify the input UTXOs and the output address(es)
  • generates a serialized transaction that can be then announced to the network

unify_test_files.py

  • enforcing some readability practices in test files and possibly adding information about paths and addresses used
  • need to specify all the files to be modified and optionally the path-to-address translation file
  • rewrites the files in place, or just prints the intended changes when run with -c

monero_unused_functions

  • Find functions from Monero cryptography that are not used.

eth_defs_unpack.py

  • Unpacks the definitions from a definitions-sparse.zip that does not contain the Merkle proofs for space-saving. This format is not currently distributed.

recalc_optiga_for_emulator.py

  • Takes a valid Infineon certificate from an Optiga and replaces its public key with a pubkey for private key 0x01000000..., so that the staging HSM can sign the resulting certificate.