Commit Graph

269 Commits (ce82f53010a593ebd864aad90b7d5b8ab42d1fe8)

Author SHA1 Message Date
matejcik 45787307ca style(core): support AnyStr in all hash function arguments
3 years ago
grdddj 9fc5bb546b style(core): full pyright-based type-checking
3 years ago
Pavol Rusnak 56f0e2c5de
fix(core): add missing include
3 years ago
Martin Milata afd7cb3b01 feat(core/rust): add example layout for T1
3 years ago
Martin Milata d656f88572 style(all): reformat with clang-format 13.0
3 years ago
Ondřej Vejpustek f918cf9a27 fix(core): fix typos in modtrezorcrypto-bip340.h
3 years ago
Andrew Kozlik aaceb5bcc6 chore(core): Remove USE_SECP256K1_ZKP_BIP340 build option.
3 years ago
Andrew Kozlik ae41f7dec8 fix(core): Fix bip340 module build.
3 years ago
Andrew Kozlik 59c0f4383d feat(core): Add key tweaking functions to trezorcrypto.bip340.
3 years ago
matejcik f6f52445bd feat(core/cardano): support Icarus, Icarus-Trezor, and Ledger derivations
3 years ago
matejcik 387466e073 refactor(core): separate Cardano cryptography into its own module
3 years ago
Andrew Kozlik eb90efd914 chore(crypto,core,legacy): Add return code to hdnode_fill_public_key().
3 years ago
Andrew Kozlik 34621a6b6d fix(crypto,core,legacy): Check private key validity when deriving public key.
3 years ago
matejcik 1d72085b5c feat(core): implement conversion from timestamp to datetime
3 years ago
Ondřej Vejpustek 29ce860d46 refactor(core,crypto): rename schnorr to BIP340
3 years ago
Ondřej Vejpustek 15bb085509 refactor(core,crypto): make public key derivation functions return
3 years ago
Ondřej Vejpustek 172f399b29 style(core): fix style
3 years ago
Ondřej Vejpustek 7ac0bdd215 feat(core): make core use Schnorr signatures
3 years ago
Ondřej Vejpustek 26463eb3ce feat(core): make core use ecdsa from secp256k1_zkp wherever possible
3 years ago
Jan Pochyla 2703d714c2 feat(core): add Rust UI components, layouts, text rendering
3 years ago
Martin Milata bd005e33df refactor(core): decouple T1 button handling from touch
3 years ago
matejcik 806beb77d2 feat(core/rust): improve catch_exception, make use of Rust 1.55
3 years ago
matejcik b666895303 feat(core/rust): catch, handle and propagate uPy exceptions
3 years ago
Jan Pochyla 7c65f0357a feat(core/rust): Implement exception catching in Rust
3 years ago
Martin Milata b062b95348 chore(vendor): bump micropython to 1.15
3 years ago
Martin Milata f37ca13f1a refactor(core): disable SD, SBU, fatfs for T1 build
3 years ago
Martin Milata 582e1318c4 feat(core/emulator): support protobuf messages in memory dumps
3 years ago
Martin Milata ceaf4da617 fix(core): explicitly refresh display on T1
3 years ago
matejcik b41d4c71f0 feat(core/emulator): JSON memory map dump
3 years ago
matejcik fe6c131b14 feat(core/emulator): build emulator with -DSTATIC=
3 years ago
Pavol Rusnak 8cfa5da1ce
docs: fix typos in comments
3 years ago
Pavol Rusnak 69d1465e08
refactor(core): pass invert_colors to send_init_seq_ST7789V as argument
3 years ago
Pavol Rusnak 18e103bb94
style(core): refactor style of display-stm32_T
3 years ago
Jan Pochyla 8a21e3fc73 feat(core): Add Rust Protobuf codec
3 years ago
Pavol Rusnak 23aa69caea fix(core): unify Features.revision reporting with legacy
3 years ago
matejcik 391976bcda refactor(core/usb): do not require serial number on instantiaton of USB
3 years ago
Jan Pochyla 6257584951 feat(core): Add Rust bindings to MicroPython and trezorhal
3 years ago
Martin Milata ac711fb8ee style(core): use more recent type annotation syntax
3 years ago
Martin Milata 8b3ac659a0 style(core): mypy: disable implicit Optional for function arguments
3 years ago
Andrew Kozlik 2836bfc64c fix(core): Improve error handling and range checking in modtrezorconfig.
3 years ago
Andrew Kozlik 3084d1196d feat(core): Support 50 digit PIN and wipe code.
3 years ago
Pavol Rusnak 4649b80b44
feat(core): allow secp256k1-zkp for bitcoin-only build
3 years ago
Pavol Rusnak d211e3af07
fix(core): switch define to invert display colors into const volatile
3 years ago
Pavol Rusnak 814db111b2
feat(core): add define to invert display colors on ST7789V
3 years ago
Andrew Kozlik a8c500bffd feat(core): Ensure that WebAuthn runs on port 21326 by default for both production and debug emulator.
3 years ago
Martin Milata 7c1d72c254 style(core): fix bootloader formatting
3 years ago
Pavol Rusnak 29a3e91f09 feat(core): refactor display_init_seq from display_init
3 years ago
matejcik ccd241fe55 feat(core/cardano): enable typing for Cardano app
3 years ago
Pavol Rusnak f3d5de15ef refactor(core): turn SECP256K1_ZKP into a firmware feature flag
4 years ago
Jan Pochyla f3a64435f1
fix(core): root ui callback for trezorconfig mod (#1412)
4 years ago
Martin Milata db5b65a420 perf(core): enable rendering of substrings to avoid slicing
4 years ago
Rafael Korbas edf9b4ee85 Refactor mnemonic_to_entropy to not (misleadingly) return checksum
4 years ago
Andrew Kozlik aeb021b159 chore(core): Improve naming of SLIP39's T9 mask lookup.
4 years ago
Andrew Kozlik 7fc1851279 fix(crypto): Improve naming and robustness of SLIP39's T9 mask lookup.
4 years ago
Andrew Kozlik c67ecb984b chore(crypto): Move XPUB_MAXLEN and ADDRESS_MAXLEN from modtrezorcrypto to bip32.h.
4 years ago
Andrew Kozlik c21ca81a1e fix(core): Prevent sensitive data from being left on the call stack in modtrezorcrypto.
4 years ago
Pavol Rusnak d8534b5ee6
perf(core/extmod): replace HMAC Python implementation with C
4 years ago
matejcik 7e5d9e295b fix(core): help mypy understand micropython's module management
4 years ago
Martin Milata f3fd98a7ba core: remove 1px of space on the left of each glyph
4 years ago
Martin Milata b8bb63fbef core: drop unused FONT_SIZE constant
4 years ago
Martin Milata 1b982659c4
core: fix boot loop after uploading invalid homescreen (#1205)
4 years ago
Pavol Rusnak 4e11735d22 core/modtrezorui: remove prefill from text functions
4 years ago
matejcik 5385617eda core: increase address length limit to accomodate CRW (fixes #1139)
4 years ago
Ondřej Vejpustek 59002118c0 core/extmod: explicitly initialize automatic variables
4 years ago
Martin Milata e5bdca655a core: don't scale emulator background image
4 years ago
Pavol Rusnak a6451dad46
core/fonts: update headers
4 years ago
Pavol Rusnak 47e7550423
core/extmod: add font_pixeloperator{,mono}, use this font for T1
4 years ago
Pavol Rusnak cec87bba50
core: remove mono bold font variant (not used anywhere)
4 years ago
Pavol Rusnak 8bc32d035b
core/extmod: enable display_text* methods for other models than T
4 years ago
Pavol Rusnak df03534955
core: print inverted question mark for nonprintable characters
4 years ago
matejcik fa757f4b7f core: improve type annotation for bip32.derive_path
4 years ago
matejcik 0c3bc53aee core: clean up types for field caching, fix count_message
4 years ago
matejcik 85d74ece76 core: implement synchronous v1 codec
4 years ago
Tomas Susanka 56fe5adcfc Merge branch 'release/2020-06'
4 years ago
Pavol Rusnak 179645e3ad core: unify usage of TREZOR_MODEL
4 years ago
Ondrej Mikle c877dc8dd6 core: port storage to T1
4 years ago
matejcik 872e0fb0e0 core: lower scheduler resolution to milliseconds
4 years ago
matejcik 2cedc687e6 core: disable trezor-crypto BIP32 cache
4 years ago
matejcik 837c4df61f core: expose storage_is_unlocked() as config.is_unlocked()
4 years ago
matejcik 87433995b0 core: add BITCOIN_ONLY to mock file
4 years ago
Ondřej Vejpustek 24ceb0ab6b crypto/bignum: change limb size to 29, add tests
4 years ago
matejcik aa52fc3903 core/extmod: drop unused rfc6979 module
4 years ago
matejcik 050936d0d7 core: enable finalizers on extmod classes
4 years ago
matejcik 7f2e7b0003 core: add Ethereum constants to mocks
4 years ago
Pavol Rusnak 25cc836660
core/extmod: fix build of modtrezorui when TREZOR_MODEL is set to '1'
4 years ago
matejcik d0f709b8cc core: fix and use MAKEMODULEDEFS instead of explicit registration
4 years ago
Pavol Rusnak a7806d08d7
core/crypto: remove unused bip32.deserialize function
4 years ago
Pavol Rusnak 1695228d80
core/crypto: remove unused serialize_private function
4 years ago
Pavol Rusnak f07ff17fad
core/crypto: add missing field to Blake2b constructor
4 years ago
matejcik 3789a3372b core/sdcard: modify exception handling in fatfs
4 years ago
Andrew Kozlik bfd834d1de storage: Add storage_ensure_not_wipe_code().
4 years ago
Dusan Klinec 2658e253fa xmr/bp: memory optimizations and improvements
4 years ago
matejcik 9ab84d2455 core/tests: thoroughly test modified APIs
4 years ago
matejcik b24411b900 core/sdcard: unmount instance when powering off sdcard
4 years ago
matejcik c81be584fb core/fatfs: ensure functions can only be called on a mounted filesystem
4 years ago
matejcik fa746e2990 core/fatfs: rework low-level FatFS API
4 years ago
Pavol Rusnak 39ce100608
Merge pull request #864 from trezor/prusnak/bootloader-text-break
4 years ago
matejcik b2084a19be core/trezorio: move sdcard functions to a submodule
4 years ago
matejcik 30529d218d core/sdcard: change SDCard methods to plain functions
4 years ago
matejcik 06b89c57c5 core/sdcard: return proper disk status flags to fatfs
4 years ago
Pavol Rusnak 74802a107e
core/modtrezorui: add display_text_split
4 years ago
Pavol Rusnak 32f8f1cb61
core/embed: update fatfs to 0.14; use upstream version
4 years ago
Pavol Rusnak 3de1b3aa54
core/embed: switch to unprivileged in main.c
5 years ago
Pavol Rusnak 500156b9ba
core/embed: don't use local copy of inflate
5 years ago
Tomas Susanka 51ef963738 tests: introduce UI tests for core
5 years ago
Andrew Kozlik a3b608d8dd storage, core: Reveal the wipe code status after the device is unlocked.
5 years ago
Andrew Kozlik a168d661cf core: Add support for ChangeWipeCode message.
5 years ago
Pavol Rusnak d761a57689
storage: introduce FLAGS_APPID
5 years ago
Pavol Rusnak 1caae698ca
storage: make FLAG_PUBLIC and FLAGS_WRITE part of public API
5 years ago
Pavol Rusnak 4462fb522c
core/nem: don't use mp_obj_new_str_of_type
5 years ago
Tomas Susanka 0511cc8b8c core: add final mypy fixes!
5 years ago
Pavol Rusnak 1bdc83838b
legacy+core: properly handle non-printable ascii characters
5 years ago
Andrew Kozlik c25a41aa57 core: Fix mypy warnings in FatFS and SD salt code.
5 years ago
Pavol Rusnak 5f980b50a0
core/monero: refactor bulletproof look-up-tables
5 years ago
Pavol Rusnak 7394ecfa77
core: add exist_ok parameter to fatfs.mkdir
5 years ago
Pavol Rusnak 78041d261b
crypto: refactor bip39 api
5 years ago
Andrew Kozlik 6350b1c61c core: Implement SD card protection.
5 years ago
Andrew Kozlik 4f01003637 storage: Add external salt parameter to unlock() and change_pin().
5 years ago
Pavol Rusnak 2711ce2a3d
Merge pull request #394 from trezor/andrewkozlik/fido2-squashed
5 years ago
matejcik cad297ed36 style: fix weirdness in modtrezorio-fatfs.h
5 years ago
Andrew Kozlik 84674a7463 core/usb: Add write_blocking() to trezor.io.HID.
5 years ago
Ondrej Mikle 59ee3750d1
core/modtrezorio: raise exception when directory listing fails on disk error or other error
5 years ago
Ondrej Mikle 24359ea074
core/modtrezorio: use upstream's fix of read-after-buffer
5 years ago
Ondrej Mikle 972a96f1a0
core/modtrezorio: raise error when no space left on FAT FS
5 years ago
Pavol Rusnak 743f57afdb
core/modtrezorio: use ff_unifdef.sh preprocessor
5 years ago
Pavol Rusnak 49a98a5015
core/modtrezorio: enable FatFS.mkfs only in emulator
5 years ago
Pavol Rusnak d40b7c0385
core/modtrezorio: enable LFN+Unicode in FatFS
5 years ago
Pavol Rusnak aa8d14c0ea
core/modtrezorio: add FatFS support
5 years ago
Pavol Rusnak 908bbfffef
core: remove remaning utility code for Bitcoin only firmware
5 years ago
Pavol Rusnak c815bc410c
core: remove remaning Decred/Zcash code for Bitcoin only firmware
5 years ago
Pavol Rusnak 07ef01f3e4
core: introduce BITCOIN_ONLY flag
5 years ago
Andrew Kozlik 8297b81cd5 core/crypto: Add AES mode constants.
5 years ago
Andrew Kozlik 0a594ea1e9
Merge pull request #280 from trezor/andrewkozlik/slip-0021
5 years ago
Andrew Kozlik 217c910b4b cardano: Implement SLIP-0023 and add SLIP-0039 support for Cardano.
5 years ago
Tomas Susanka d2597d54c1 core/shamir: persistence
5 years ago
andrew 5f604b5fea core/seed: Add SLIP-0021 implementation and tests.
5 years ago
Jan Pochyla 0f6f05e4b7 core/typing: fix extmod docs and mocks
5 years ago
Jan Pochyla 3af75c0b8b core/typing: improve extmod types
5 years ago
Tomas Susanka 49d6a35249 core: add slip39 keyboard
5 years ago
Pavol Rusnak 312224b7a3
core: fix style
5 years ago
Pavol Rusnak e432c37df0
core/sdcard: read/write now don't return bool, but rather throw an Exception instead
5 years ago
Pavol Rusnak 54d348228f
all: rename TREZOR to Trezor where possible
5 years ago
Jan Pochyla 416226648c core: rotate touch coordinates by default
5 years ago
Roman Zeyde b538eb3375
core/secp256k1_zkp: refactor API into a Context class
5 years ago
Milan Rossa 779ff86214
core: redesign multiprofile support, add profile verbosity
5 years ago
Pavol Rusnak 11aac67c82
core: fix last commit
5 years ago
Pavol Rusnak ae749eedee
core/secp256k1_zkp: don't allocate static buffer
5 years ago
matejcik 0b50d671e1 make gen && make style
5 years ago
matejcik 482b4569f5 build: fix and auto-generate mock files
5 years ago
matejcik ffcb5e99cc mocks: fix shamir package
5 years ago