Francois Beutin
5c7614b2d9
Reset BSS section at the start of the app in swap mode for signature
2023-04-28 16:57:20 +02:00
Alexandre Paillier
504747aba2
Improve finalizeParsing() checking in swap context
...
Simplify code in logic_signTx.c
2023-04-24 11:27:13 +02:00
Alexandre Paillier
ceacee00a7
Provide domain name APDU implementation
2023-03-29 18:09:42 +02:00
Alexandre Paillier
f17104312b
Challenge implementation
2023-03-29 15:16:23 +02:00
tjulien-ledger
45c049fd04
Oasys ( #413 )
...
* correcting ticker
* modifying conf file
* updating main.c
* updating chainConfig.h
* Removed last bits of EWC
* correcting arbitrum
* adding oasys conf file
* adding oasys icons
* remaining changes for oasys
* removing trailing space
---------
Co-authored-by: Alexandre Paillier <alexandre.paillier@ledger.fr >
2023-03-10 18:41:35 +01:00
Alexandre Paillier
27392c20de
Better context checks when processing EIP-191 APDUs
2023-02-09 11:44:21 +01:00
tjulien-ledger
160fed7348
renaming EWC to EWT ( #397 )
...
* correcting ticker
* modifying conf file
* updating main.c
* updating chainConfig.h
* Removed last bits of EWC
---------
Co-authored-by: Alexandre Paillier <alexandre.paillier@ledger.fr >
2023-02-03 15:54:07 +01:00
Alexandre Paillier
098f328b99
Plugin interface version bump
2023-01-10 14:12:43 +01:00
Alexandre Paillier
74f880dce9
Removes useless space at the end of tickers
2023-01-10 14:12:39 +01:00
Alexandre Paillier
0d09d31dba
Small reordering to save 4 bytes on tokenContext_t struct padding
2022-12-01 15:09:53 +01:00
Alexandre Paillier
3e750e8419
Fix device crash caused by improper memory alignment of the plugin context buffer
2022-12-01 15:09:51 +01:00
Benjyskan
071c96ea13
change dataContext.tokenContext.fieldIndex to uint16_t to avoid plugin's 'context->parameterOffset' overflow on large tx ( #228 )
2022-11-23 14:25:49 +01:00
Alexandre Paillier
529a67b9dd
Fix uninitialized verbose EIP712 setting
2022-11-18 17:57:01 +01:00
tjulien-ledger
795140015d
adding id4good
2022-11-16 18:59:52 +01:00
Alexandre Paillier
309c09b599
Added new public CAL testing key in app
2022-11-16 17:03:30 +01:00
Jorge Martins
51db776de6
add const to parameters
2022-11-08 09:57:24 +01:00
Jorge Martins
b120fc6565
fix code style
2022-11-08 09:56:00 +01:00
Jorge Martins
ead85a0aaa
Add funcs to avoid tricking user when using plugin
...
Usually the length of an array is sent in a parameter.
Most of the times the developer simply uses U2BE/U4BE to get this length. It
is possible to forge a tx with a `length > sizeof(uint16_t/uint32_t)` and trick the
user into signing something different from what is shown.
For instance consider the following parameter:
00 ... 01 00 00 00 01
if the developer uses U2BE/U4BE, it is possible that this length is shown to the user
and if it is, the user will see the length as 1.
2022-11-08 09:44:37 +01:00
Alexandre Paillier
c158c3e502
Better split between business logic & UI code for EIP-712
2022-10-24 10:18:51 +02:00
Alexandre Paillier
c803322f3c
Review fixes
2022-10-17 11:57:16 +02:00
Alexandre Paillier
2474bdb81a
Merge remote-tracking branch 'origin/develop' into HEAD
2022-10-17 11:44:28 +02:00
Jorge Martins
fa44edaeeb
Merge pull request #348 from LedgerHQ/plugin-error-handling
...
Abort signing process ETH_PLUGIN_QUERY_*
2022-10-07 17:11:04 +02:00
Jorge Martins
4c78d485a1
Abort signing process ETH_PLUGIN_QUERY_*
...
Before was not possible to abort the signing process even if the plugin
return an error code. According to the docs any return code besides
ETH_PLUGIN_RESULT_OK should abort the signing process.
2022-10-07 16:40:27 +02:00
Alexandre Paillier
f43d9c4dc7
Fix EIP-191 UI split
2022-10-06 15:11:30 +02:00
Lucas PASCAL
3ff15a16e3
[clean] Removing compound-related plugin code
2022-10-03 14:49:54 +02:00
Lucas PASCAL
3f294f9582
Minor fixes after review
2022-09-16 14:43:51 +02:00
Alexandre Paillier
50dd4f5965
Linting + updated to clang-format 12.0.1
2022-09-15 16:49:19 +02:00
Alexandre Paillier
eec44e994a
Removed duplicated function signature of ui_idle
2022-09-15 16:49:19 +02:00
Alexandre Paillier
493ce85c3b
New implementation
2022-09-15 13:25:08 +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
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
apaillier-ledger
95a0c8896b
Revert "[clean] Removing compound-related plugin code"
2022-09-12 14:42:57 +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
Clement Bouvet
89eeaa7b7d
eth: split ux from rest of source
2022-08-24 10:35:16 +02:00
Alexandre Paillier
de9e895ad9
EIP-712 code linting
2022-08-05 18:15:59 +02:00
Alexandre Paillier
7dad477413
Moved EIP 712 commands handling into their own file & renamed some things
2022-08-05 18:15:50 +02:00
Alexandre Paillier
12b97d91db
Added a global apdu response code variable
2022-08-05 18:15:48 +02:00
Alexandre Paillier
1b00038859
Fixed compilation warning
2022-08-05 18:15:46 +02:00
Alexandre Paillier
8dcb4bc74f
New EIP-712 verbose in-app setting + small refactoring & naming unification
2022-08-05 18:15:42 +02:00
Alexandre Paillier
a24f621ce3
EIP712 filtering, added new APDUs
2022-08-05 18:15:41 +02:00
Alexandre Paillier
d5603857b3
Fix UI display of signed negative integers smaller than 256 bits
2022-08-05 18:15:38 +02:00
Alexandre Paillier
bbcfe5abc3
Added a util function to convert from byte buffer to uint128_t
2022-08-05 18:15:38 +02:00
Alexandre Paillier
f3e307423e
EIP712 now displays integers differently if signed or unsigned
2022-08-05 18:15:38 +02:00
Alexandre Paillier
10fbb8d5bc
Unify all the hex digits used in the app
2022-08-05 18:15:37 +02:00
Alexandre Paillier
59d8ace99e
Split the uint256 lib into multiple more meaningful files
2022-08-05 18:15:36 +02:00
Alexandre Paillier
31aff6a95f
Removed unused custom strchr function
2022-08-05 18:15:35 +02:00