Commit Graph

370 Commits

Author SHA1 Message Date
Alexandre Paillier
ea8ae0d83c Now can show explicit unlimited EIP-712 amount-joins 2024-06-24 17:26:13 +02:00
Alexandre Paillier
ae359b481e Now buffers the EIP-712 pairs to show more than one per screen 2024-06-20 13:20:52 +02:00
Alexandre Paillier
ab914230ce Centralize EIP-712 field shown check 2024-06-20 11:32:20 +02:00
Alexandre Paillier
ae486e9e53 Can now feed the EIP-712 UI value buffer from multiple data (APDU) chunks
Also fixes EIP-712 bytes formatting for values longer than the display buffer, it would only show "..." (introduced by aa38ee995)
2024-06-20 11:32:09 +02:00
Alexandre Paillier
05ddb70e7f Can now handle amount-join EIP-712 filtering on Permit (ERC-2612) messages 2024-06-20 10:40:00 +02:00
Alexandre Paillier
e503373411 Fixes 2024-06-20 08:58:45 +02:00
Charles-Edouard de la Vergne
273dd95937 Add 'sender' field to review screens 2024-06-18 11:58:09 +02:00
Alexandre Paillier
2fdb3bcb34 Date/Time EIP-712 filtering implementation 2024-05-24 17:36:38 +02:00
Alexandre Paillier
e76e429148 Amount-join EIP-712 filtering implementation 2024-05-24 17:35:34 +02:00
Alexandre Paillier
736303e5de PROVIDE_ERC20_INFORMATION & PROVIDE_NFT_INFORMATION now send back the index where the asset has been stored 2024-05-24 17:35:34 +02:00
Alexandre Paillier
4a7e50138a Revert "EIP-712 addresses can now be displayed as a token ticker or a trusted domain name"
This reverts commit 77f5c9389b.
2024-05-24 15:41:49 +02:00
Alexandre Paillier
c17e06b525 Remove filters counter check at the end of EIP712 flow 2024-05-20 11:21:20 +02:00
Charles-Edouard de la Vergne
e434173bc3 Merge pull request #565 from LedgerHQ/cev/B2CA-1558_Port-Flex
B2CA-1558: Port Ethereum on Flex
2024-05-16 17:44:25 +02:00
Charles-Edouard de la Vergne
c0d19fdf6d Update ethereum plugin-sdk 2024-05-13 14:33:10 +02:00
Alexandre Paillier
c2011f5d42 Renamed Item to Asset & changed the set marker type to boolean
Also renamed the reset assets function
2024-05-07 17:58:17 +02:00
Alexandre Paillier
c2e0f7ca6a Now uses the new asset util functions
Now the first asset is properly stored at index 0 instead of 1
2024-05-07 17:44:52 +02:00
Alexandre Paillier
c8c4b6cccc Renamed get_asset_info to get_asset_info_by_addr 2024-05-07 17:37:04 +02:00
Francois Beutin
27f9ad52a8 Remove token management from main 2024-05-07 11:36:50 +02:00
Alexandre Paillier
6df0ad5ba2 EIP-712 empty array handling fix 2024-05-02 18:37:31 +02:00
Alexandre Paillier
3be9e1d197 Changed how EIP-712 array progression is counted 2024-05-02 18:37:30 +02:00
Alexandre Paillier
04464c2f11 Delay EIP-712 array traversal until size is received 2024-05-02 18:37:30 +02:00
Charles-Edouard de la Vergne
ddd5f3d0d9 Remove useless flag NO_CONSENT 2024-04-29 18:28:27 +02:00
Charles-Edouard de la Vergne
aa38ee9959 Code improvements / Fix warnings
- Fix CodeQL warnings
- Port lots of improvements/fixes from PR #225
- replace 'array_hexstr' and '%*H' format by sdk function 'format_hex'
- Add 'noreturn' attribute in 'main.c'
2024-04-26 11:09:18 +02:00
Charles-Edouard de la Vergne
85a0ebb088 Fix lib_standard_app include path 2024-04-15 13:55:47 +02:00
Charles-Edouard de la Vergne
f218fb8b92 Port current config on Standard App Makefile 2024-04-15 13:55:46 +02:00
Charles-Edouard de la Vergne
f5ea9c51c2 Fix various Linter issues and mispelling 2024-03-27 14:43:15 +01:00
Charles-Edouard de la Vergne
36ae183a1c Fix deprecated warnings 2024-03-27 14:43:15 +01:00
Alexandre Paillier
72e26947c3 Fix blind-signing TX refusal
Would refuse the APDU but then start a empty signature flow on the device
Which would crash the device when accepted or rejected
2024-03-08 14:37:05 +01:00
apaillier-ledger
b2c39a17b7 Merge pull request #537 from LedgerHQ/feat/apa/remove_stark
Remove Starkware support
2024-02-14 14:01:47 +01:00
Alexandre Paillier
77f5c9389b EIP-712 addresses can now be displayed as a token ticker or a trusted domain name 2024-02-14 12:10:03 +01:00
Alexandre Paillier
ea1709b0ea Completely remove old Starkware internal "plugin" 2024-02-14 09:37:11 +01:00
Alexandre Paillier
c84794b257 get_displayable_ticker function now takes a given chain_config_t struct 2024-02-08 15:11:28 +01:00
Alexandre Paillier
bb23e7b7a5 Fix broken build for chains with extra tokens (testnets) 2024-02-06 10:52:46 +01:00
Alexandre Paillier
91352af57c Improve error-handling of chain ID when parsing APDUs 2024-02-05 18:04:46 +01:00
Francois Beutin
e0c2ad7057 Move all public keys to dedicated header 2024-02-02 11:23:32 +01:00
Francois Beutin
5bf5023e35 Merge nft and tokens into a single asset header 2024-02-02 11:23:31 +01:00
Francois Beutin
e64a04da51 Remove unused big uint utilities from plugin sdk 2024-02-02 11:23:31 +01:00
Francois Beutin
3bcf12ce1d Rename utils to common_utils 2024-02-02 11:23:30 +01:00
Francois Beutin
294f88195b Extract data for external plugins from internal plugin file 2024-02-02 11:23:29 +01:00
Francois Beutin
3d9da0dd16 Move basic utility functions from ethUtils to main utils file 2024-02-02 11:23:28 +01:00
Francois Beutin
04d0fde47a Move network features out of ethUtils 2024-02-02 11:23:27 +01:00
Francois Beutin
ca8700f47c Split tokens file 2024-02-02 11:23:26 +01:00
Alexandre Paillier
611587832f Fix comparison for token ticker length being off by one 2023-12-18 17:26:53 +01:00
Francois Beutin
c353982405 During signature, move parsing and swap fields checking away from main flow 2023-12-08 17:26:56 +01:00
Francois Beutin
b3d96d1b86 Use standard app crypto helper to simplify io_seproxyhal_touch_tx_ok 2023-12-08 17:11:22 +01:00
Francois Beutin
60d1d97667 Return to Exchange when failing to sign in swap mode 2023-12-01 19:50:07 +01:00
Alexandre Paillier
edad008ed1 Fix signature generation for SET_EXTERNAL_PLUGIN in client 2023-11-30 10:55:44 +01:00
Francois Beutin
84d0ce2b80 Misc modifications from previous review 2023-11-17 15:32:54 +01:00
apaillier-ledger
5d913f3a15 Merge pull request #449 from LedgerHQ/tdj/eth_plugin_sdk_update
Update plugins SDK framework
2023-10-19 11:26:32 +02:00
Alexandre Paillier
49da32af8e Added missing return value checks following recent changes 2023-10-10 16:42:24 +02:00