Commit Graph

1216 Commits

Author SHA1 Message Date
Alexandre Paillier
f46ed72c60 Reimplement the status words for EIP-191 error cases without throwing 2022-09-15 16:49:18 +02:00
Alexandre Paillier
e93d82c104 Better separation between EIP-191 UI & business logic 2022-09-15 16:49:18 +02:00
Alexandre Paillier
4bbc142ee5 Doxygen comments 2022-09-15 16:49:15 +02:00
Alexandre Paillier
78c0bfe424 Removed EIP-712 strict chain ID check 2022-09-15 16:44:19 +02:00
Alexandre Paillier
40f00bb012 Minimize the RAM used by EIP-191 global variables 2022-09-15 13:25:10 +02:00
Alexandre Paillier
aedf6026c7 Handling of EIP191 non ASCII messages 2022-09-15 13:25:09 +02:00
Alexandre Paillier
81e15e51e8 Fix skip issue 2022-09-15 13:25:09 +02:00
Alexandre Paillier
493ce85c3b New implementation 2022-09-15 13:25:08 +02:00
Alexandre Paillier
35c77ff29c Increased EIP712 max array depth to 8 2022-09-14 17:27:34 +02:00
Alexandre Paillier
edac57df06 Increased memory allocator pool to 8K 2022-09-14 17:27:33 +02:00
Alexandre Paillier
5ce56bd53e Renamed EIP712 context files to less generic ones 2022-09-14 17:27:33 +02:00
Alexandre Paillier
1b46ccb190 Extract EIP-712 UI code 2022-09-14 17:27:33 +02:00
Alexandre Paillier
ab67ae1cb3 Merge remote-tracking branch 'origin/develop' into HEAD 2022-09-14 17:27:25 +02:00
Alexandre Paillier
a58d2ababb Removed unused bagl type references in EIP-191 code 2022-09-14 11:08:10 +02:00
tjulien-ledger
a0d16023d5 Light integration (#334)
* adding XDC

* adding meter

* adding multivac

* adding id4good

* adding tecracoin

* minor typo

* adding apothem

* adding apothem 2

* apothem and tecratestnet on network.c

* fix nettwork.c

* 1st additions

* last additions

* adding fix from develop

* update apothem coin name

* removing id4good

* adding Cronos
2022-09-14 10:50:57 +02:00
Alexandre Paillier
a27826dcf6 Fix EIP712 type_hash function description 2022-09-14 09:41:39 +02:00
Alexandre Paillier
ed479128fd EIP712 Filtering count checking 2022-09-14 09:41:39 +02:00
Alexandre Paillier
93b0bb08f7 Better handling of missing EIP721 error codes + add a missing one for EIP712 filtering signature checking 2022-09-14 09:41:38 +02:00
Alexandre Paillier
3f02bf672c Updated linter to clang-format 12.0.1 2022-09-14 09:41:38 +02:00
Alexandre Paillier
9e4df4b655 Updated EIP712 filtering signature specs to start with a magic number
Making it impossible for a signature of one type to be valid as another
2022-09-14 09:41:38 +02:00
Alexandre Paillier
3ee1fa419a Now supports EIP-712 filtering with missing chain id & contract address 2022-09-14 09:41:37 +02:00
Alexandre Paillier
089de9e28f EIP712 tests - Renamed -test.json files into -data.json 2022-09-14 09:41:37 +02:00
Alexandre Paillier
fd93495096 CI - Add ragger tests 2022-09-14 09:41:31 +02:00
Alexandre Paillier
78172cdd61 CI - Changed build workflow to compile release applications instead; remove the artifacts upload since they were not used 2022-09-13 18:20:19 +02:00
apaillier-ledger
829a694b78 Merge pull request #340 from LedgerHQ/revert-319-purge/compound_plugin
Revert "[clean] Removing compound-related plugin code"
2022-09-12 15:12:23 +02:00
apaillier-ledger
95a0c8896b Revert "[clean] Removing compound-related plugin code" 2022-09-12 14:42:57 +02:00
Alexandre Paillier
3e89610499 Ragger tests now take CLI arguments for device model and elfs location 2022-08-31 18:09:48 +02:00
Alexandre Paillier
770bd9c39d Replaced the signature key used for EIP712 tests by the CAL testing one 2022-08-31 18:09:38 +02:00
apaillier-ledger
384c16c3d0 Merge pull request #338 from LedgerHQ/eth-ux-split
eth: split ux from rest of source
2022-08-24 17:32:47 +02:00
Clement Bouvet
89eeaa7b7d eth: split ux from rest of source 2022-08-24 10:35:16 +02:00
Alexandre Paillier
ed7b6541c0 EIP712 - Extra fixes from security review 2022-08-10 16:19:52 +02:00
Alexandre Paillier
98889e2642 Moved EIP712 filtering argument switch from P1 to P2, more in line with other EIP712 APDUs 2022-08-10 15:19:10 +02:00
Alexandre Paillier
f278221537 Add two new EIP712 filters 2022-08-09 17:49:47 +02:00
Alexandre Paillier
3c321a04ea Split ragger ethereum client into multiple smaller files 2022-08-09 17:49:05 +02:00
Alexandre Paillier
c6ae3480a7 Updated ragger requirements file 2022-08-09 14:07:37 +02:00
Alexandre Paillier
af277c9c40 Removed dead code in EIP712 JSON handling python test code 2022-08-09 14:07:37 +02:00
Alexandre Paillier
e8f58bdce7 Ragger tests now have EIP721 filtering 2022-08-09 14:07:36 +02:00
Alexandre Paillier
0d38bea388 Ragger tests - Refactored the handling of the app settings 2022-08-09 14:07:36 +02:00
Alexandre Paillier
5e9b426b3e EIP-712 tests now have reference response signatures they can check against 2022-08-09 14:07:36 +02:00
Alexandre Paillier
ca04b5e213 Now properly handles UI clicks in EIP712 automated tests 2022-08-09 14:07:35 +02:00
Alexandre Paillier
341b7c2adf Modified all the nominal eip712 test input files 2022-08-09 14:07:35 +02:00
Alexandre Paillier
243f33bbb7 Fix initial state of buffer in BIP32 formatting function 2022-08-09 14:07:35 +02:00
Alexandre Paillier
311c266084 Fixes problem with field values too long for one APDU 2022-08-09 14:07:34 +02:00
Alexandre Paillier
fe13260140 EIP712 feeder script ragger support 2022-08-09 14:07:34 +02:00
Alexandre Paillier
ef7f2e128a Ragger tests now target all devices 2022-08-09 14:07:33 +02:00
Alexandre Paillier
aef491fdee Added a ragger ethereum client with EIP712 support 2022-08-09 14:07:33 +02:00
Alexandre Paillier
6758453dfa Merge remote-tracking branch 'origin/develop' into apr/feature/eip712 2022-08-09 14:05:14 +02:00
Jorge Martins
7c831dd067 Merge pull request #336 from jmartins-ledger/bug-fix
Fix feesToString buffer overflow
2022-08-09 12:35:50 +02:00
Jorge Martins
d384007912 Fix feesToString buffer overflow 2022-08-09 11:30:43 +02:00
Alexandre Paillier
3e3dade0b4 Security review code linting 2022-08-08 13:55:45 +02:00