Commit Graph

574 Commits (56d3cbe2e93b133ba6f269e1b64c0ac7192ab2f1)

Author SHA1 Message Date
Pavol Rusnak 00f6312a81
rename failures, unify strings where possible
7 years ago
Saleem Rashid 77c4e7b167 vendor: Update trezor-crypto for GCC 7.1.1
7 years ago
Saleem Rashid 09917920ba transaction: Fix buffer overflow
7 years ago
Pavol Rusnak da17f2472b
ethereum: add more tokens from MEW
7 years ago
Pavol Rusnak 34c0b93d54
protob: update messages_map.py script
7 years ago
Saleem Rashid 8fa71c0837 protob: Add messages_map.py (#167)
7 years ago
Pavol Rusnak 6b74139b45
add 1.5.0 to changelog
7 years ago
Pavol Rusnak 317363f84c
enable mixing of segwit and non-segwit inputs
7 years ago
Pavol Rusnak 57a91c7160
update litecoin maxfee/kb
7 years ago
Pavol Rusnak d424829333
add chain_id to erc20 tokens
7 years ago
Pavol Rusnak 766a6c1189
add space before coin shortcut because of how new formatter works
7 years ago
Pavol Rusnak 652a40c3e6
use bn_format from trezor-crypto where possible
7 years ago
Pavol Rusnak ba9aae143e
ethereum: support for ERC-20 tokens
7 years ago
Pavol Rusnak 391e3940e5
refactor fee computation, but keep ceil logic
7 years ago
Pavol Rusnak c8dc17341c
bump bitcoin maxfee
7 years ago
Pavol Rusnak 24ac52079f
disable native segwit for now
7 years ago
Pavol Rusnak 49f44d296c
refactor signing_check_output
7 years ago
Pavol Rusnak 06304c2378
update coins
7 years ago
Pavol Rusnak f4e3d7ae1e
bump version to 1.5.0
7 years ago
Pavol Rusnak 6d0d2348cf
usb: whitespace cleanup
7 years ago
Pavol Rusnak f1db85948e
Merge branch 'segwit'
7 years ago
Pavol Rusnak 1ecbca8338
signing: add option to enable/disable mixing of segwit/non-segwit inputs
7 years ago
Pavol Rusnak 5faee8149f
update trezor-crypto
7 years ago
Pavol Rusnak 261b8d5e41
multisig: allow mismatched change addresses, show them as non-change
7 years ago
Pavol Rusnak 4343d0eaeb
show progressbar layout in GetAddress
7 years ago
Pavol Rusnak e31e55e505
simplify bip32 change logic
7 years ago
Pavol Rusnak b1995bb8d1
remove segwit warning, don't enable segwit on coins that don't have segwit=true in definition
7 years ago
Pavol Rusnak 4183b6cbbc
update logic for change addresses (address_n length 1 is allowed now)
7 years ago
Pavol Rusnak cb14b98213
ethereum: add new chain_ids
7 years ago
Pavol Rusnak 38970cbd68
transaction: fix compile_output for OP_RETURN
7 years ago
Pavol Rusnak 8e017526ab
Merge branch 'master' into segwit
7 years ago
Pavol Rusnak 13f03d3880
Revert "ethereum: add EthereumSignTx.prefix"
7 years ago
Pavol Rusnak aafd61ec8b
update trezor-common, add cointype.segwit bool
7 years ago
Pavol Rusnak 2866e6fe88
ethereum: add EthereumSignTx.prefix
7 years ago
Pavol Rusnak 258d3eaddd
GetPublicKey: use Bitcoin as default coin if not provided
7 years ago
Peter Banik d4cc4a48b8 Added altcoin support to GetPublicKey (#161)
7 years ago
Pavol Rusnak 300b09badc
Merge branch 'master' into segwit
7 years ago
Pavol Rusnak dcceec806d
fix call to protectButton while showing segwit warning
7 years ago
Jochen Hoenicke d70ac623a4 Small bugfixes in signing
7 years ago
Jochen Hoenicke 420471889d Refactored signing method.
7 years ago
Jochen Hoenicke 9d9377438c Fix missing returns after signing_abort
7 years ago
Jochen Hoenicke e5c9b361d3 Better error message for segwit without amount
7 years ago
Jochen Hoenicke 99fc6d31d1
[refactor] Use compute_address in msgGetAddress.
7 years ago
Jochen Hoenicke 7b1381766f
Change address support for segwit.
7 years ago
Pavol Rusnak d7d3d0490e
update trezor-crypto
7 years ago
Pavol Rusnak d03356fab1
raising the maxfee
7 years ago
mruddy c8c85424b6
fix usage of RNG before setup (#150/#151)
7 years ago
Pavol Rusnak 97a061244e
Merge branch 'master' into segwit
8 years ago
Pavol Rusnak 1943d840e3
add ChangeLog for bootloader, move firmware ChangeLog
8 years ago
Saleem Rashid bd167dcdf2 USB: Annotate USB interfaces with iInterface
8 years ago
Saleem Rashid 0c039b3e14 USB: Compile-time USB string checking
8 years ago
Pavol Rusnak 14399f100e
bump version
8 years ago
Pavol Rusnak 5c54edf54e
differentiate between ETH and ETC using chain_id
8 years ago
Jochen Hoenicke 32fb7e96cc Ethereum EIP-155 replay protection
8 years ago
Jochen Hoenicke 5b40f6d90b Updated trezor-common
8 years ago
Jochen Hoenicke f36cf5c10c Handle edge cases for ethereum txs.
8 years ago
Pavol Rusnak 505df38a84
fix when oled triangle is shown
8 years ago
Roman Zeyde 466155270b layout: split "First Last <first@last.com>" GPG user ID for readability
8 years ago
Jochen Hoenicke 1cceec0ae2 Check that U2F key only uses hardened derivation (#139)
8 years ago
Pavol Rusnak ab006262e8
mytrezor.com -> trezor.io/start
8 years ago
Pavol Rusnak 1e297c68fa
cosmetic changes to matrix recovery
8 years ago
Pavol Rusnak b1723fef5b
change binary name of nanopb generator (to follow upstream name)
8 years ago
Jochen Hoenicke 8e84a6716c Merge master into segwit
8 years ago
Jochen Hoenicke e9eaad2fcf
Segwit: Show multisig segwit address
8 years ago
Jochen Hoenicke f9a203431e
Display SegWit address on Trezor
8 years ago
Jochen Hoenicke e67f13ef4b
Multi-byte address prefixes for segwit
8 years ago
Pavol Rusnak 32f3c54cc4
fix whitespace
8 years ago
Jochen Hoenicke 52da2fc5e7
Segwit: Fix problems introduced by rebase
8 years ago
Roman Zeyde 9eb87245ba usb: exclude hid_report_descriptor_debug from non-debug build (#135)
8 years ago
Pavol Rusnak 1763a5b647
use new hdnode_private_ckd_cached API
8 years ago
Saleem Rashid 5f203d0a0c debug: Improve debugging API (#134)
8 years ago
Saleem Rashid 5c00b24307 trezor: Fix screen timeout (#131)
8 years ago
Saleem Rashid b4eaf7dbaf timer: Fix non-critical integer overflow (#129)
8 years ago
Pavol Rusnak 15fcda21ce
update protobuf
8 years ago
Jochen Hoenicke acfdb714ff
New Matrix-based recovery
8 years ago
Pavol Rusnak 14aa486fa6
partially revert 4ce4cc5605 for smoother merge
8 years ago
Pavol Rusnak c4d144a82e
extract CHECK_PARAM
8 years ago
Pavol Rusnak a122615663
extract CHECK_PIN and CHECK_PIN_UNCACHED
8 years ago
Pavol Rusnak 0ef70164a5
extract CHECK_INITIALIZED and CHECK_NOT_INITIALIZED macros
8 years ago
Pavol Rusnak 27a4e41707
refactor forgotten disabled coinByName usage
8 years ago
Saleem Rashid 0ec32a6146 timer: Replace screen timeout with SysTick
8 years ago
Saleem Rashid 25b9bfd97b timer: Use Cortex-M3 SysTick timers
8 years ago
Pavol Rusnak 3cede26fbc
add yubico u2f demo to u2f known apps
8 years ago
Pavol Rusnak f45454b5ce
u2f: add fastmail to known providers
8 years ago
Jochen Hoenicke 9287dd7e04
Poll USB during BIP39 derivation.
8 years ago
Pavol Rusnak 4ce4cc5605
halt the device when encountered an invalid mnemonic (skip if device loaded or recovered without enforced wordlist)
8 years ago
Pavol Rusnak 810d478f4c
check return values of ecdsa_sign calls
8 years ago
Jochen Hoenicke 2950588271
Fix segwit multisig.
8 years ago
Jochen Hoenicke 895da908e0
Simplified InputScriptType
8 years ago
Jochen Hoenicke 388750f2d1
Support for P2SH compatible segwit
8 years ago
Jochen Hoenicke b7b9891cb4
Signing for Segnet Transaction works
8 years ago
Jochen Hoenicke e5000fb196
segwit sign (completely untested)
8 years ago
Jochen Hoenicke 5c60be9854
hashes for segwit signature
8 years ago
Jochen Hoenicke 1bd4b99f95
Allow SegWit addresses
8 years ago
Pavol Rusnak 71890e4edf
implement u2f_counter in LoadDevice, Recoverydevice and ResetDevice messages
8 years ago
Pavol Rusnak 4471c6e0e6
show different dialog when U2F client uses bogus appid
8 years ago
Pavol Rusnak ae37ea8a9a
bump version, add changelog
8 years ago
Pavol Rusnak 592f3c9afe
lock screen after 10 minutes of inactivity
8 years ago
Pavol Rusnak f8ad9fc742
fix Verify (by introducing coinExtractAddressType)
8 years ago
Saleem Rashid 0b51d060d8
allow ClearSession purely via confirm button
8 years ago
Pavol Rusnak ea35b4bfe7
update trezor-crypto
8 years ago
Roman Zeyde 0bb7f16b78 crypto: allow Ed25519 signing larger digests (#124)
8 years ago
Pavol Rusnak e9f0706c2e
fix prevtx hashing when input count is 0
8 years ago
Pavol Rusnak 2daab8cf02
add coins-gen.py script and generate coins.c using that script
8 years ago
Pavol Rusnak c288a0e328
implement TXEXTRADATA transaction RequestType
8 years ago
Roman Zeyde 68a1bcc908 Add specific layout for GPG signature (#122)
8 years ago
Pavol Rusnak 771a0c014b
update protobuf
8 years ago
Pavol Rusnak f0b93b44f5
multibyte addresses can be 40 chars long
8 years ago
Roman Zeyde b57c0ff430
Use trezor-crypto ECDH, adding Curve25519 support
8 years ago
Karel Bílek dfc543c955 Switching address types (#119)
8 years ago
Pavol Rusnak 7ddccdb7f4
Revert "simplify cryptoMessageVerify call"
8 years ago
Pavol Rusnak c0181b1aec
extract address related stuff into trezor-crypto
8 years ago
Pavol Rusnak e70900d49e
don't tie message verification with P2PKH addresses
8 years ago
Pavol Rusnak 3a42032c63
simplify cryptoMessageVerify call
8 years ago
Daira Hopwood 6bfe487f19
Update address prefixes for Zcash.
8 years ago
Daira Hopwood 69d99d202d
Add support for multi-byte address prefixes.
8 years ago
Jochen Hoenicke a0ade6343e Reworked rfc6979 signing. (#116)
8 years ago
Jochen Hoenicke d767e52055 Confirm to change U2F counter (#114)
8 years ago
bitcartel e0e190b3dc
Update coins.c for Zcash mainnet (#111)
8 years ago
Pavol Rusnak 8d7c1ec543 Merge pull request #110 from jhoenicke/master
8 years ago
Jochen Hoenicke 6d65551b82
More alignment fixes
8 years ago
Pavol Rusnak dec9484a17
update version
8 years ago
Pavol Rusnak d7c0fbc379
add const where possible (for message parsing)
8 years ago
Pavol Rusnak 0a55a9e415
update to nanopb 0.2.9.3
8 years ago
Pavol Rusnak fff16e813a
add link to protobuf definition in coins.c
8 years ago
Jochen Hoenicke bc55013942
Simplified one-byte encodings
8 years ago
Jochen Hoenicke 91dcead35e
Gas estimate screen, tweaked display of value
8 years ago
Jochen Hoenicke a37a2e3612
Confirm data, streamlining code
8 years ago
Jochen Hoenicke 05a73593f6
No special case encoding for '\x0', cleanups
8 years ago
Jochen Hoenicke 22d0e7a053 Incorporated changes for updated master
8 years ago
Pavol Rusnak efd443abe8 implement ethereum signing check
8 years ago
Pavol Rusnak 4e0a69b6ea refactor ethereum methods, show progress properly
8 years ago
Pavol Rusnak 1558d77ea0 split rlp_encode_length into rlp_encode_length and rlp_encode_list_length
8 years ago
Pavol Rusnak 3db323c599 fix printing of ethereum value and address
8 years ago
Pavol Rusnak 3d1ab24d92 simplify ethereum code, EthereumSignTx.data_length is the total length now
8 years ago
Pavol Rusnak 48008ddd8e implement layoutEthereumConfirmTx
8 years ago
Pavol Rusnak 7d9a56e678 fix curly braces in if statements
8 years ago
Nick Johnson 4a195ebd86 Don't include 0x in address display, so everything fits
8 years ago
Alex Beregszaszi 7432805b6a Fix special RLP case for length=1 firstbyte=0
8 years ago
Alex Beregszaszi 079d282541 Simplify send_request_chunk()
8 years ago
Alex Beregszaszi 78b1370de9 More input sanity checks in EthereumSignTx
8 years ago
Alex Beregszaszi a617200c9c Add confirmation dialog to EthereumSignTx
8 years ago
Alex Beregszaszi e0a1743003 Add sanity checks for data fields in EthereumSignTx
8 years ago
Alex Beregszaszi ab49a7cb45 Calculate data length based on the initial chunk and the supplied length
8 years ago
Alex Beregszaszi e0395b13eb Fix RLP length calculation
8 years ago
Alex Beregszaszi 2b6c991179 Split out send_signature and support short requests
8 years ago
Alex Beregszaszi 1d2f9b6ecd Initial signing implementation for Ethereum
8 years ago
Alex Beregszaszi a9449520b8 Ethereum signing skeleton
8 years ago
Alex Beregszaszi 9c7e41f15b Reorder fsm.c for logical grouping of signing methods
8 years ago
Nick Johnson a031b79e24 Add sha3.o to OBJS
8 years ago
Nick Johnson 352d296f77 Return the correct MessageType from EthereumGetAddress
8 years ago
Alex Beregszaszi 3c2d9111e2 Implement EthereumGetAddress
8 years ago
Alex Beregszaszi bf465357ee Include placeholder handlers for the Ethereum protocol
8 years ago
Jochen Hoenicke 7d8cb9018e
Ask for confirmation on ECDH Session (gpg decrypt)
8 years ago
Pavol Rusnak 437c5739f1
Merge branch 'jhoenicke-master'
8 years ago
Pavol Rusnak f489550a1b
Merge branch 'master' of https://github.com/jhoenicke/trezor-mcu into jhoenicke-master
8 years ago
Pavol Rusnak 79e4d4d8c2
fix uppercase letters in GitHub/GitLab
8 years ago
Pavol Rusnak 40ca2c9210
add gitlab to u2f_knownapps
8 years ago
Pavol Rusnak 633024a993
send failure when reset workflow is aborted (this sends features when it was aborted by initialize message)
8 years ago
Pavol Rusnak 3ce756b692
add set -e to shell scripts
8 years ago
Pavol Rusnak fdbae0b0e0
fix hid_control_request for debug link
8 years ago
Jochen Hoenicke ae4dff6e5f Only compute pubkey on demand.
8 years ago
Jochen Hoenicke 97466519b0 Bitbucket U2F support
8 years ago
Pavol Rusnak c6309ff93c
no UI for ECDHSessionKey for now (just ask for PIN)
8 years ago
Roman Zeyde c86086e2b9 Add ECDH support
8 years ago
Pavol Rusnak 79986604a3 Merge pull request #92 from jhoenicke/master
8 years ago
Jochen Hoenicke 120cfc148f
new message SetU2FCounter
8 years ago
Pavol Rusnak 57197e1463
use macros for usb interface numbers
8 years ago
Pavol Rusnak 5e57a1ceaf
Merge branch 'u2f'
8 years ago
Alex Beregszaszi 080dcf462f
Define field size limits for the Ethereum protocol
8 years ago
Jochen Hoenicke caafefc0fb Tweaked timeouts, handle null nodes.
8 years ago
Roman Zeyde e2064337c6 Update protobuf definitions
8 years ago
Roman Zeyde 63696dc474 crypto: add ECDH session key generation
8 years ago
Pavol Rusnak da067913c2
show app icons in u2f dialog
8 years ago
Pavol Rusnak b1e3c52b08
remove DialogIcon enum, use bitmap structure directly
8 years ago
Pavol Rusnak 9aaf0d37ba
add u2f icons
8 years ago
Ondrej Sika 2929bfbd48
u2f - add Slush Pool to WellKnown
8 years ago
Pavol Rusnak 36b9d80120
bump version (to 1.3.6)
8 years ago
Jochen Hoenicke 73e7d82e3f Allow initialize() to abort PIN wait
8 years ago
Pavol Rusnak 11072320a9
use ff01 usage page for debuglink
8 years ago
Jochen Hoenicke c4e8bd0d0e More robust storage recycle sector
8 years ago
Jochen Hoenicke a366700332 fix indentation
8 years ago
Jochen Hoenicke 78d11cf060 New memory access over debug link
8 years ago
Jochen Hoenicke be0858b7d7 Updated protobuf
8 years ago
Jochen Hoenicke 18d549c83d Fix U2F hid interface index for debug link
8 years ago
Jochen Hoenicke e093371129 Added storage area for u2f counter.
8 years ago
Jochen Hoenicke 8e7896456a Merge branch 'origin/master' into u2f
8 years ago
Pavol Rusnak e119656c29
use descriptor that matches fido one (except usage_page)
8 years ago
Jochen Hoenicke 87bfd5a829 Bugfix: restore storage.
8 years ago
Jochen Hoenicke 053fe7cb66 Remove Cancel Option
8 years ago
Jochen Hoenicke 68b34af19e More standard conform behaviour
8 years ago
Jochen Hoenicke a1ba431d94
Use more sensible HID descriptor
8 years ago
Jochen Hoenicke bc92fb95a5
Clear pinarea on storage_init if upgrade fails
8 years ago
Pavol Rusnak 46119bd007
clear pin failures on wipe and when in debug mode
8 years ago
Jochen Hoenicke 96f30a0ba7 Don't ask for passphrase with u2f.
8 years ago
Jochen Hoenicke a0571e02a7 Removed more magic numbers.
8 years ago
Pavol Rusnak d20671b517
handle various signed_message_headers correctly
8 years ago
Pavol Rusnak 041eaa5e4b
refactor u2f dialogs into a separate function
8 years ago
Pavol Rusnak ad2bab0186
Merge branch 'u2f' of github.com:jhoenicke/trezor-mcu into u2f
8 years ago
Pavol Rusnak c123db71b9
Merge branch 'master' into u2f
8 years ago
Pavol Rusnak 9006c90a59
use MEMSET_BZERO and U2F_APPID_SIZE macros
8 years ago
Jochen Hoenicke 2ab950555e Fixed u2f reentry
8 years ago
Jochen Hoenicke eb2ef2464c CID hacks, not yet finished
8 years ago
Jochen Hoenicke 450a277f45 Only compile debugInt when debugging
8 years ago
Jochen Hoenicke 117d261a38 Script to generate key and certificate
8 years ago
Jochen Hoenicke 55fe98ccd1 Fix USB HID descriptor
8 years ago
Pavol Rusnak e1fa896d6c
disable ECIES
8 years ago
Pavol Rusnak def4a9a02c
fix pbkdf2 usage in storage.c
8 years ago
Pavol Rusnak 008da6c089 Merge pull request #82 from jhoenicke/pinarea
8 years ago
Jochen Hoenicke 8be6956ce9 fix compilation
8 years ago
Pavol Rusnak a5feab0175
update submodules
8 years ago
Pavol Rusnak f5ea14a85f
fix bugs in debug
8 years ago
Jochen Hoenicke 6218770e26 Script to generate key and certificate
8 years ago
Jochen Hoenicke c1ff9e1ec7 Use more sensible hid descriptor.
8 years ago
Jochen Hoenicke 2abe5d477e Clean-up. Better checks for buffer overflow.
8 years ago
Jochen Hoenicke 5c13e78deb Added support for known appid.
8 years ago
Jochen Hoenicke b3bfc64d2f Use hmac for checking key integrity
8 years ago
Jochen Hoenicke 01ddb3ff66 Reduced buffer sizes, moved static info to flash
8 years ago
Jochen Hoenicke 1b8bd1852e Adapted U2F to new hdnode API
8 years ago
Jochen Hoenicke cf38291ca4 Updated branch u2f
8 years ago
Jochen Hoenicke 630e26dd20 use less stack memory in storage_commit
8 years ago
Jochen Hoenicke da98a3a6fd Don't reflash storage after each PIN entry
8 years ago
Jochen Hoenicke e0539f8f8b Move public key recovery (verify) to trezor-crypto
8 years ago
Pavol Rusnak 5e5138066a
adapt the reorder of hash_final functions
8 years ago
Pavol Rusnak b8539a6972
fix wording
8 years ago
Pavol Rusnak 035a6e754f
fix last commit
8 years ago
Pavol Rusnak 9e8c369f93
show address in verifymessage layout
8 years ago
Jochen Hoenicke 51f02ff763
ed25519 support
8 years ago
Jochen Hoenicke 6813ffb431
Remove the public_key hack.
8 years ago
Roman Zeyde 2b2414cb91 Add GPG v2.1 support by signing message digest
8 years ago
Jochen Hoenicke 03c501d9e3 Do not use hardcoded string for secp256k1.
8 years ago
Jochen Hoenicke 56238e63fc Added curve type to HD node.
8 years ago
Pavol Rusnak d8aeb63854
pass version/lock_time parameters from SignTx message to signing_init function
8 years ago
Pavol Rusnak 7675a0aa5f
fix usage of inline/static
9 years ago
Pavol Rusnak 4c9149818a
bump version (to 1.3.5)
9 years ago
Pavol Rusnak 1d3c7ee3f2
cleanup Waking up screen usage
9 years ago
Pavol Rusnak 6e3aec0c1b
move submodules to vendor subdirectory
9 years ago
Pavol Rusnak ed76d030ef
check for sessionPassphraseCached
9 years ago
Pavol Rusnak f557e6149d
implement GetPublicKey.show_display option
9 years ago
Pavol Rusnak 27183323a4
fail sooner when the device is not initialized
9 years ago
Pavol Rusnak 50c8811af9
double sized font for reset device
9 years ago
Mark Bryars 32f8819997 Generate hardened keys in a unique root
9 years ago
Mark Bryars 9328cad7f1 Add U2F support
9 years ago
Roman Zeyde c08ff09f0f storage: add compile-time assert for sizeof(Storage) validation
9 years ago
Pavol Rusnak 8372504238 show home screen on Initialize
9 years ago
Roman Zeyde 755b0388f0 firmware: exclude debug functionality from release build
9 years ago
Roman Zeyde 1bb00adc37 fsm: add compile-time assert for response size validation
9 years ago
Pavol Rusnak 8b1f8a4595 show "Web sign in to" when HTTPS is detected
9 years ago
Pavol Rusnak 0c6b3e26e2 prepare 1.3.4 release
9 years ago
Pavol Rusnak b678ba8811 update protob
9 years ago