Commit Graph

  • f99804de08 Added a signed int256 formatting function Alexandre Paillier 2022-06-06 18:36:20 +02:00
  • 59d8ace99e Split the uint256 lib into multiple more meaningful files Alexandre Paillier 2022-06-07 11:54:54 +02:00
  • 50225d72d0 Some const correctness in the uint256 functions Alexandre Paillier 2022-06-06 18:35:55 +02:00
  • f458fcd6ac Better naming for uint256 type functions Alexandre Paillier 2022-06-06 16:40:01 +02:00
  • 25b9caf2d5 Typo fix in APDU doc Alexandre Paillier 2022-05-31 17:30:02 +02:00
  • 31aff6a95f Removed unused custom strchr function Alexandre Paillier 2022-05-31 16:31:39 +02:00
  • 3674212016 New EIP712 APDUs added to the documentation Alexandre Paillier 2022-05-18 14:24:26 +02:00
  • 30f8c50e3f Renamed doc files to their recommended extension Alexandre Paillier 2022-05-17 13:58:28 +02:00
  • b2fc45e295 Reordered the APDUs by INS values in the doc Alexandre Paillier 2022-05-17 11:35:03 +02:00
  • f0d6a2bba1 Now filters out all fields but the name in the EIP712Domain in the half-blind mode Alexandre Paillier 2022-05-18 15:00:43 +02:00
  • 239da44d0e Added a new temporary EIP-712 half-bind mode Alexandre Paillier 2022-05-16 16:06:52 +02:00
  • a0551e8226 Added a function to check if we are in the domain or the message struct Alexandre Paillier 2022-05-16 15:15:00 +02:00
  • 2fa6379470 Now only compiles full EIP-712 support for capable devices Alexandre Paillier 2022-05-16 10:59:20 +02:00
  • b9820774ba Replaced the debug printf in the EIP712 signature function by two more relevant ones Alexandre Paillier 2022-05-13 15:03:10 +02:00
  • 59dd149534 Added some NULL checks for global structure pointers Alexandre Paillier 2022-05-13 11:57:33 +02:00
  • c0eaf8d106 Proper cleanup after EIP712 message Alexandre Paillier 2022-05-12 17:30:26 +02:00
  • 0525f7cda8 Fixes bad multi-screen value behaviour Alexandre Paillier 2022-05-11 11:40:15 +02:00
  • 2badb7b5b2 Now displays the field values Alexandre Paillier 2022-05-11 11:39:21 +02:00
  • 9cd39e2c02 Now uses some of the old EIP712 code as common code between the two implementations + approve/reject button now works Alexandre Paillier 2022-05-12 17:30:04 +02:00
  • 9f29a7caa2 UI handling WIP Alexandre Paillier 2022-05-12 17:29:35 +02:00
  • b8424d1a21 Now handles domain & message struct not based on order but on struct name Alexandre Paillier 2022-05-06 18:14:04 +02:00
  • 5c00a5c27b Structs alignment in memory, fixes device freezes/crashes Alexandre Paillier 2022-05-05 15:21:39 +02:00
  • d43849d852 Sets the memory buffer to 5K Alexandre Paillier 2022-05-04 17:16:46 +02:00
  • 90dfa74538 Emulates old behaviour with new APDUs but computed all on-device Alexandre Paillier 2022-05-04 17:16:25 +02:00
  • 516682b206 Fix impl APDU wrongly returning 0x6a80 Alexandre Paillier 2022-05-04 11:54:22 +02:00
  • 3095d54394 Now initializes the eip712 context Alexandre Paillier 2022-05-04 11:43:20 +02:00
  • b6e4f887cb Fixes printf formatting issues caused by the toolchain Alexandre Paillier 2022-05-04 11:27:51 +02:00
  • 4442ba5716 Now responds to EIP712 APDUs Alexandre Paillier 2022-05-04 11:31:44 +02:00
  • faae5a909c Fix PIC crashes Alexandre Paillier 2022-05-04 11:37:16 +02:00
  • 9f8b2da74c WIP integration in app Alexandre Paillier 2022-05-12 17:28:40 +02:00
  • e070c379da Removed old code main function & apdu handling function Alexandre Paillier 2022-05-12 17:27:51 +02:00
  • d333b3a433 Fixed compilation errors/warnings Alexandre Paillier 2022-05-02 18:28:02 +02:00
  • c689b68f76 Remove some now useless debug outputs Alexandre Paillier 2022-05-02 17:32:00 +02:00
  • ad030cdb6a Make the dependencies mandatory in the typehash function Alexandre Paillier 2022-05-02 17:27:24 +02:00
  • 6c14bfa476 Now wraps the printf calls in a macro. SDK-like Alexandre Paillier 2022-05-02 17:11:28 +02:00
  • 09697f718a Fix dynamic bytes type encoding Alexandre Paillier 2022-05-02 11:05:25 +02:00
  • 6d86a5de77 Global hash making Alexandre Paillier 2022-05-02 11:04:59 +02:00
  • a2a72edf83 Now initializes field hash struct in eip712 context Alexandre Paillier 2022-04-28 16:47:48 +02:00
  • 83dda443f4 Refactor type hash function to use less RAM Alexandre Paillier 2022-05-02 15:30:41 +02:00
  • 854791324a Doubled the available RAM size Alexandre Paillier 2022-04-27 15:30:29 +02:00
  • 01ba4fb41f Small refactoring to the format uint memory utils function Alexandre Paillier 2022-04-26 18:15:53 +02:00
  • 149e20cd11 Typehash refactoring Alexandre Paillier 2022-04-26 15:08:59 +02:00
  • a3f5eee116 WIP field hashing support Alexandre Paillier 2022-04-14 18:22:35 +02:00
  • 0e9cd91ecc Removed structure packing, prevents unaligned access Alexandre Paillier 2022-04-14 15:25:38 +02:00
  • 477046bd43 Removed unused byte type Alexandre Paillier 2022-04-13 17:02:33 +02:00
  • 45dfd5d6a6 Proper path implementation with array support Alexandre Paillier 2022-04-08 18:55:56 +02:00
  • 0e386a4204 Now initializes a path in memory Alexandre Paillier 2022-05-02 15:30:26 +02:00
  • 7e35b96ec0 WIP field hashing Alexandre Paillier 2022-05-02 15:30:14 +02:00
  • fd31def094 Update app context wrapping Alexandre Paillier 2022-05-02 15:35:31 +02:00
  • 9521b36de3 Now prefixes the type hash with a marker Alexandre Paillier 2022-04-04 12:03:37 +02:00
  • 223aa10a58 Better macro naming for hash length Alexandre Paillier 2022-03-31 17:11:46 +02:00
  • c53a4299a3 TypeHash function now uses the device's hashing functions Alexandre Paillier 2022-03-31 17:08:44 +02:00
  • 3d9089b395 New functions that emulate the device's hashing functions Alexandre Paillier 2022-05-02 15:29:19 +02:00
  • 1375571957 Unify mem utils function names Alexandre Paillier 2022-03-30 17:52:41 +02:00
  • 9ca9caf410 encodeType reformatting / code cleanup Alexandre Paillier 2022-03-30 17:43:41 +02:00
  • c30b3aceec Added memory allocation utility functions Alexandre Paillier 2022-05-02 15:29:02 +02:00
  • 547846f56d Small code cleaning in the init of solidity typenames Alexandre Paillier 2022-03-29 18:30:08 +02:00
  • 2584490afa Added array size macro Alexandre Paillier 2022-03-29 18:29:36 +02:00
  • 54fe26a301 Extracted the context initialization from the main source file Alexandre Paillier 2022-05-02 15:28:50 +02:00
  • b2fe2f26ba Implements the hashing part of typeHash Alexandre Paillier 2022-05-02 15:32:45 +02:00
  • 5889da054e Extracted the encodeType and typeHash functions from the main file Alexandre Paillier 2022-05-02 15:28:35 +02:00
  • e3dfd787b5 Memory allocation checking Alexandre Paillier 2022-03-28 14:31:02 +02:00
  • 16081c38a9 Added some memory related debug features Alexandre Paillier 2022-05-03 15:41:58 +02:00
  • 59490beff9 Small type-enforcing refactoring + now properly gets typestrings Alexandre Paillier 2022-03-28 11:44:00 +02:00
  • e57bc93c69 Fix stack overflow with long APDUs Alexandre Paillier 2022-03-24 18:52:45 +01:00
  • 161919c012 Simpler computing the string's length in memory Alexandre Paillier 2022-03-24 15:44:18 +01:00
  • 420afdf958 Small function to make formatting into memory of uint easier Alexandre Paillier 2022-03-24 15:19:41 +01:00
  • e3a8e4ccd2 Big Refactoring Alexandre Paillier 2022-05-02 15:28:18 +02:00
  • 3fda010667 Add memory functions Alexandre Paillier 2022-05-02 14:41:00 +02:00
  • 5438b39eb2 Fixes the index overflow, since header + data could be longer than 0xFF Alexandre Paillier 2022-03-21 14:40:46 +01:00
  • 63f454b29a Fixed ram usage message Alexandre Paillier 2022-03-17 10:18:29 +01:00
  • 024691eb64 Fix warning in release mode Alexandre Paillier 2022-03-16 15:26:28 +01:00
  • 545bc439fe Better implementation of enum(s)->typename memory structure Alexandre Paillier 2022-03-16 14:41:46 +01:00
  • c3dc0c18ff Refactoring; added some utility functions to navigate the type definitions Alexandre Paillier 2022-03-16 11:59:33 +01:00
  • 3b6c32d707 Updated C code with new array handling Alexandre Paillier 2022-03-14 17:29:48 +01:00
  • 1bc8675473 Initial version Alexandre Paillier 2022-03-04 18:15:37 +01:00
  • b25eaa1b48 Renamed the existing EIP712 implementation folder Alexandre Paillier 2022-05-03 09:33:46 +02:00
  • 895c37e1fa Change apdu payload length to proper size (8 bits) Alexandre Paillier 2022-07-19 11:42:25 +02:00
  • cd36a5fe9c Merge pull request #275 from LedgerHQ/feat/tests-unit Coline Seguret 2022-07-25 11:54:26 +02:00
  • 293efa533c docs: Docs of client Coline 2022-07-25 11:42:45 +02:00
  • e926f9f347 docs: Docs of client Coline 2022-07-25 11:40:52 +02:00
  • fd0f893615 docs: some comment in code Coline 2022-07-25 11:03:41 +02:00
  • 986b4b427e fix: merge len bip32 with path function Coline 2022-07-25 10:55:47 +02:00
  • a064839efa fix: result positional argument Coline 2022-07-25 10:48:03 +02:00
  • a476bbb569 fix: merge 3 mv into 1 and README Coline 2022-07-25 10:39:42 +02:00
  • 8da09ec892 fix: real errors test Coline 2022-07-22 11:59:45 +02:00
  • 1dbe04c8ca fix: useless pass Coline 2022-07-22 11:26:02 +02:00
  • 02b5c686e8 fix: apdu_as_bytes() into bytes.fromhex() Coline 2022-07-22 11:23:09 +02:00
  • d5a8859ebf fix: named ERC20Infomation Coline 2022-07-22 11:13:27 +02:00
  • d3b8cdcfdf fix: add fixture decorator Coline 2022-07-22 10:59:24 +02:00
  • 84230c921a fix: merge some similary code and clean code Coline 2022-07-22 10:55:32 +02:00
  • d82bf765e8 fix: explicite decorator useless Coline 2022-07-22 10:32:33 +02:00
  • de036b38e8 fix: ci use matrix for build nano app Coline 2022-07-22 10:18:11 +02:00
  • 16ddb1e67d feat: TU demo .c Coline 2022-07-20 15:40:01 +02:00
  • cebc1c65f1 fix: merge apdu.md into ethapp.asc Coline 2022-07-20 13:08:17 +02:00
  • f156e2376b Merge branch 'develop' into feat/tests-unit apaillier-ledger 2022-07-20 11:43:55 +02:00
  • ad671ee565 Merge pull request #325 from jmartins-ledger/bug-fixes apaillier-ledger 2022-07-18 16:21:36 +02:00
  • 143d0e54f6 Fix function signature Jorge Martins 2022-07-15 12:51:30 +02:00
  • 53520d23c2 Fix code style Jorge Martins 2022-07-15 12:42:09 +02:00
  • 8cc2adbb0a Mark pointer to databuffer/workbuffer as const Jorge Martins 2022-07-15 12:36:35 +02:00