Commit Graph

377 Commits

Author SHA1 Message Date
Charles-Edouard de la Vergne
f4a29413a1 Cleaup useless flags 2024-07-30 09:32:34 +02:00
Alexandre Paillier
617291db6d Fix uninitialized UI buffer for EIP-712
Would refuse the message altogether if strings.tmp.tmp wasn't empty.
Introduced in 4680a9d583
2024-07-26 14:30:04 +02:00
apaillier-ledger
44b5a23785 Fix Wanchain (#615)
* fix Wanchain app sign error

* remove redundant path

---------

Co-authored-by: zhwir <zhwir@163.com>
2024-07-26 10:46:52 +02:00
Alexandre Paillier
0309d1ef08 Revert "Remove filters counter check at the end of EIP712 flow"
This reverts commit c17e06b525.
2024-07-24 11:59:32 +02:00
Alexandre Paillier
4680a9d583 Better counting of EIP-712 filters
* Now counts them when received instead of only counting the displayed fields when filtering
* Fixes issues of filtered fields within an array of size N being counted N times
2024-07-24 11:59:14 +02:00
Alexandre Paillier
4770b55f46 New blind-signing flow for LNSP/LNX 2024-06-25 15:44:51 +02:00
Alexandre Paillier
fbd913bc33 Removed blind signing setting 2024-06-24 18:05:35 +02:00
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