Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade baking app and remove wallet app code #84

Closed
wants to merge 338 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
338 commits
Select commit Hold shift + click to select a range
f7cf93d
Merge pull request #31 from trilitech/palmer@functori@cleaner-hmac-test
ajinkyaraj-23 Feb 23, 2024
474fe19
Makefile: remove unused MACRO
spalmer25 Feb 23, 2024
4ef646e
Makefile: remove already defined in Makefile.defines
spalmer25 Feb 23, 2024
d5b2351
Makefile: prepare variants for Makefile.standard_app
spalmer25 Feb 23, 2024
0c38cf9
Makefile: prepare icons for Makefile.standard_app
spalmer25 Feb 23, 2024
8af1f6c
Makefile: qrcode for Makefile.standard_app
spalmer25 Feb 23, 2024
35dad25
Makefile: prepare APP_FLAGS_APP_LOAD_PARAMS for Makefile.standard_app
spalmer25 Feb 23, 2024
e98e95e
Makefile: prepare enabling/disabling for Makefile.standard_app
spalmer25 Feb 23, 2024
fc313ae
Makefile: LOAD_PARAMS for Makefile.standard_app
spalmer25 Feb 23, 2024
9e8103c
Makefile: include Makefile.standard_app
spalmer25 Feb 23, 2024
51db41e
Makefile: use IO_USB_MAX_ENDPOINTS=4
spalmer25 Feb 23, 2024
c2164e6
Makefile: do not redefined app version
spalmer25 Feb 23, 2024
a04bacf
Makefile: reorganise the Makfile
spalmer25 Feb 23, 2024
a55fd1f
Merge pull request #47 from trilitech/palmer@functori@makefile-upgrade
spalmer25 Feb 27, 2024
f4b3dd7
- Fix screensaver bug for nanosp
ajinkyaraj-23 Feb 23, 2024
fb76bae
Refacto: remove unused contents
spalmer25 Feb 26, 2024
3ba004b
Parser: remove old/unused operation contents
spalmer25 Feb 27, 2024
2d92b5d
Parser: remove the legacy magic byte
spalmer25 Feb 26, 2024
6fc6a66
Baking parser: remove old baking parsing
spalmer25 Feb 26, 2024
ee71c84
Baking parser: remove legacy baking types
spalmer25 Feb 26, 2024
d58b229
Parser: allowing all handled operations
spalmer25 Feb 26, 2024
8a121a1
- Add precondition in important functions for improved security.
ajinkyaraj-23 Feb 27, 2024
94b3a2e
- Update screenshots for screensaver
ajinkyaraj-23 Feb 27, 2024
9aa8aed
Merge pull request #49 from trilitech/palmer@functori@remove-parser-l…
ajinkyaraj-23 Feb 29, 2024
d6ec416
- Update readme to reflect latest build/usage process
ajinkyaraj-23 Feb 29, 2024
45aaea7
- Remove nix related files as they are no longer relevant
ajinkyaraj-23 Feb 29, 2024
ffd124f
- Remove install.sh as now we have one line command to load the app
ajinkyaraj-23 Feb 29, 2024
f2bc381
- Remove tezos-wallet image as no longer required.
ajinkyaraj-23 Feb 29, 2024
2b776a6
Resolve Merge conflict
ajinkyaraj-23 Feb 29, 2024
882d606
- Remove outdated installation and release guides. Keep only 1 README
ajinkyaraj-23 Feb 29, 2024
5777551
Refactor black_screen testing
ajinkyaraj-23 Mar 1, 2024
039ae1d
Merge pull request #43 from trilitech/ajinkyaraj-23@21-fix-screensave…
ajinkyaraj-23 Mar 1, 2024
6f3c63b
Merge pull request #54 from trilitech/44-update-readme-and-nixsh
ajinkyaraj-23 Mar 1, 2024
6887a54
Pre-commit: add a pre-commit config
spalmer25 Feb 27, 2024
81a543b
Pre-commit: add a trailing-whitespace hook
spalmer25 Feb 27, 2024
079c77f
Pre-commit: add end-of-file-fixer hook
spalmer25 Feb 27, 2024
e383bd7
Pre-commit: add check-yaml hook
spalmer25 Feb 27, 2024
164528a
Pre-commit: add check-added-large-files hook
spalmer25 Feb 27, 2024
f9976ea
Clang: bump clang-format version to 17
spalmer25 Feb 27, 2024
0385098
Clang: enforce block with braces
spalmer25 Feb 27, 2024
1f8fb6a
Cppcheck: add cppcheck in CI
spalmer25 Feb 29, 2024
963f3b9
Cppcheck: add misra checks
spalmer25 Feb 29, 2024
c4b3c35
Merge pull request #51 from trilitech/palmer@functori@add-codeql-check
spalmer25 Mar 1, 2024
993358a
Makefile: use standard app files
spalmer25 Mar 4, 2024
bba3c8a
base58: use base58 encoding from ledger SDK
spalmer25 Mar 4, 2024
9f524a4
misra: enable the new checked misra-rules
spalmer25 Mar 4, 2024
34d1c53
Merge pull request #58 from trilitech/ajinkyaraj-23@use_base58_from_sdk
ajinkyaraj-23 Mar 4, 2024
6032901
Doc: update documentation
spalmer25 Feb 27, 2024
ab9acf5
Merge pull request #50 from trilitech/palmer@functori@document-the-app
spalmer25 Mar 4, 2024
626b1e6
U2F: remove code related to U2F
spalmer25 Mar 5, 2024
f5885e9
Merge pull request #62 from trilitech/palmer@functori@remove-u2f-rela…
ajinkyaraj-23 Mar 7, 2024
8193271
- Move test/python folder to test/
ajinkyaraj-23 Mar 1, 2024
d159299
- Add support for Doxygen documentation
ajinkyaraj-23 Mar 1, 2024
e22ce9d
- Add changelog file
ajinkyaraj-23 Mar 1, 2024
b6bb4c8
Merge pull request #59 from trilitech/57-make-the-app-structure-compa…
ajinkyaraj-23 Mar 7, 2024
9191dea
Add test to measure signing time on device.
ajinkyaraj-23 Mar 7, 2024
00a2791
Copyright: add copyright to python files
spalmer25 Mar 8, 2024
8c2f963
- Add benchmarking section in README
ajinkyaraj-23 Mar 8, 2024
9c66bff
Copyright: add copyright to c files
spalmer25 Mar 8, 2024
e1a5964
Merge pull request #66 from trilitech/ajinkyaraj-23@39-measure-ledger…
ajinkyaraj-23 Mar 12, 2024
abff4cb
Merge pull request #67 from trilitech/palmer@functori@copyright-headers
ajinkyaraj-23 Mar 12, 2024
d718f1e
Test: add an empty set_script.sh
spalmer25 Mar 12, 2024
7df52b7
Merge pull request #69 from trilitech/palmer@functori@fix-ragger-deps…
ajinkyaraj-23 Mar 12, 2024
17c0817
Doc: documents apdu.(c|h) files
spalmer25 Mar 7, 2024
36cb879
Reset: move reset action in its own files
spalmer25 Mar 7, 2024
3e56b4f
Reset: use callback for ui
spalmer25 Mar 7, 2024
d0655bd
Doc: documents reset files
spalmer25 Mar 7, 2024
9322686
Setup: move deauthorize in setup
spalmer25 Mar 7, 2024
cb82976
Doc: documents setup files
spalmer25 Mar 7, 2024
b3d379a
Doc: documents pubkey files
spalmer25 Mar 11, 2024
ea4375d
Doc: documents query files
spalmer25 Mar 6, 2024
f44254b
Doc: documents hmac files
spalmer25 Mar 11, 2024
73f3016
Doc: documents version files
spalmer25 Mar 7, 2024
f9e0376
Delegation: rename ui_sign to ui_delegation
spalmer25 Mar 7, 2024
b6f48c3
Empty: add ui_empty.h
spalmer25 Mar 7, 2024
2bcdb69
Doc: documents delegation files
spalmer25 Mar 7, 2024
213bba6
Doc: documents sign files
spalmer25 Mar 11, 2024
68ac5ef
Merge pull request #63 from trilitech/palmer@functori@document-the-code
ajinkyaraj-23 Mar 12, 2024
71909db
Naming: rename endorsement to attestation
spalmer25 Mar 13, 2024
54ddde1
Merge pull request #71 from trilitech/palmer@functori@rename-endorsem…
ajinkyaraj-23 Mar 13, 2024
5d26860
Idle: update baking idle screens specifically
spalmer25 Mar 8, 2024
796a4df
UI: remove unused code
spalmer25 Mar 11, 2024
c7923e1
UI: reorder code
spalmer25 Mar 8, 2024
52d0b74
ui_bagl: use G_display
spalmer25 Mar 8, 2024
8d7d539
Doc: documents ui files
spalmer25 Mar 11, 2024
cc4a7ae
Doc: documents exception.h file
spalmer25 Mar 8, 2024
850db78
Doc: documents memory.h file
spalmer25 Mar 11, 2024
be8ca0b
Doc: documents type.h file
spalmer25 Mar 11, 2024
8974366
Doc: documents protocol.h file
spalmer25 Mar 11, 2024
cc31bd3
Doc: documents baking_auth.(c|h) files
spalmer25 Mar 11, 2024
dde7f67
Doc: documents keys.(c|h) files
spalmer25 Mar 8, 2024
5173e51
Doc: documents operations.(c|h) files
spalmer25 Mar 11, 2024
9161ece
Doc: documents to_string.(c|h) files
spalmer25 Mar 11, 2024
5cf1be8
Doc: documents global.h file
spalmer25 Mar 11, 2024
876ce55
Doxygen: disable EXTRACT_ALL, which assumes that all entities are doc…
spalmer25 Mar 11, 2024
877b9fd
Merge pull request #68 from trilitech/palmer@functori@document-the-co…
ajinkyaraj-23 Mar 13, 2024
d804266
cppcheck: check warnings
spalmer25 Mar 4, 2024
71b2389
MISRA: check rule [misra-c2012-7.2]
spalmer25 Feb 28, 2024
4521536
MISRA: check rule [misra-c2012-7.4]
spalmer25 Feb 29, 2024
9ae1b1a
MISRA: handle rule [misra-c2012-8.2]
spalmer25 Mar 12, 2024
e903b42
MISRA: check rule [misra-c2012-8.4]
spalmer25 Mar 12, 2024
068e6a7
MISRA: check rule [misra-c2012-8.14]
spalmer25 Feb 29, 2024
fd17316
MISRA: check rule [misra-c2012-10.1]
spalmer25 Mar 1, 2024
aba347a
MISRA: check rule [misra-c2012-10.3]
spalmer25 Mar 1, 2024
f513844
MISRA: check rule [misra-c2012-10.4]
spalmer25 Mar 1, 2024
e651978
MISRA: check rule [misra-c2012-10.5]
spalmer25 Mar 12, 2024
d07ce2d
MISRA: check rule [misra-c2012-10.6]
spalmer25 Mar 1, 2024
f5aa6d0
MISRA: check rule [misra-c2012-11.5]
spalmer25 Mar 1, 2024
e96a77f
MISRA: check rule [misra-c2012-11.8]
spalmer25 Mar 1, 2024
361543f
MISRA: check rule [misra-c2012-12.1]
spalmer25 Feb 28, 2024
8ee1de1
MISRA: check rule [misra-c2012-13.3]
spalmer25 Mar 3, 2024
807c1f5
MISRA: check rule [misra-c2012-13.4]
spalmer25 Mar 12, 2024
db43f7c
MISRA: check rule [misra-c2012-14.2]
spalmer25 Mar 3, 2024
a4bf8d0
MISRA: check rule [misra-c2012-14.4]
spalmer25 Mar 12, 2024
981f64e
MISRA: check rule [misra-c2012-16.4]
spalmer25 Mar 4, 2024
726c3df
MISRA: check rule [misra-c2012-16.5]
spalmer25 Mar 12, 2024
c0e3b4e
MISRA: check rule [misra-c2012-16.6]
spalmer25 Mar 12, 2024
b27388a
MISRA: check rule [misra-c2012-17.8]
spalmer25 Mar 12, 2024
27fdc6c
MISRA: check rule [misra-c2012-21.15]
spalmer25 Mar 12, 2024
b9451c2
MISRA: check rule [misra-c2012-21.16]
spalmer25 Mar 12, 2024
996fd67
Makefile: update baking app flags
spalmer25 Feb 26, 2024
94c1fcc
Merge pull request #60 from trilitech/palmer@functori@check-more-misr…
ajinkyaraj-23 Mar 14, 2024
de30225
Merge pull request #33 from trilitech/palmer@functori@update-app-flag
ajinkyaraj-23 Mar 14, 2024
9732bad
Test: expand the home test scenario
spalmer25 Mar 15, 2024
57b6233
Test: check all home screens in app_context
spalmer25 Mar 15, 2024
1decd4c
Deauthorize: comment the app_context check
spalmer25 Mar 15, 2024
1d76454
Merge pull request #76 from trilitech/palmer@functori@test-reinforce-…
ajinkyaraj-23 Mar 18, 2024
5fa3d45
Bagl: use standard app ui flow
spalmer25 Mar 16, 2024
7d900fb
Test: fix home authorized key display
spalmer25 Mar 16, 2024
773eea3
Merge pull request #77 from trilitech/palmer@functori@standard-ui-flow
spalmer25 Mar 21, 2024
a21e7b7
- Remove custom event handler code
ajinkyaraj-23 Mar 14, 2024
a783536
Add generated docs to .gitignore
ajinkyaraj-23 Mar 14, 2024
910747c
Remove compiler setttings from Makefile
ajinkyaraj-23 Mar 14, 2024
6117d8d
Remove custom screensaver. Users can enable custom screensaver from L…
ajinkyaraj-23 Mar 14, 2024
299fc43
Add test to check ledger screensaver.
ajinkyaraj-23 Mar 20, 2024
f38b83c
Merge pull request #78 from trilitech/ajinkyaraj-23@53-change-screens…
spalmer25 Mar 21, 2024
7fab9d6
Main: move the main loop into app_main
spalmer25 Mar 15, 2024
82a51e3
APDU: select apdu handlers using a switch instead of a handler array
spalmer25 Mar 15, 2024
2325b75
APDU: parse the APDU using the provided parser
spalmer25 Mar 17, 2024
46848ec
Sign: impose to parse and sign the message hash
spalmer25 Mar 17, 2024
6005cd8
Sign: extract the two actions of signs instructions
spalmer25 Mar 17, 2024
479ea4d
APDU: handle apdu params in the dispatcher directly
spalmer25 Mar 17, 2024
72490ac
IO: use standard io
spalmer25 Mar 18, 2024
7ed551d
Merge pull request #81 from trilitech/palmer@functori@io-standard-pro…
ajinkyaraj-23 Mar 22, 2024
d3e0691
Bip32 path: read bip32 using the standard bip32 parser
spalmer25 Mar 19, 2024
3684713
Reset: parse reset level using buffer parsing functions
spalmer25 Mar 19, 2024
a0628b2
Setup: parse setup using buffer parsing functions
spalmer25 Mar 19, 2024
466f1a2
Sign: parse the magic byte using buffer parsing functions
spalmer25 Mar 19, 2024
2503d82
Baking data: parse baking data using buffer parsing functions
spalmer25 Mar 19, 2024
95c8c36
Operation: loop with buffer in operation parser
spalmer25 Mar 19, 2024
eec9b06
Magic byte: do not read agin the magic magic byte in the parsers
spalmer25 Mar 19, 2024
6f5ad89
Protocol.h: remove protocol.h which is no longer relevant
spalmer25 Mar 19, 2024
fa77829
Operation parser: fix public key parsing
spalmer25 Mar 19, 2024
f9f17dd
Merge pull request #80 from trilitech/palmer@functori@use-buffer-read…
ajinkyaraj-23 Mar 22, 2024
96c6f15
New baking app icon
ajinkyaraj-23 Mar 22, 2024
0727b3e
Merge pull request #82 from trilitech/73-change-icon-from-standard-te…
ajinkyaraj-23 Mar 22, 2024
5eca556
Authorized key: use bip32_path_with_curve_to_pkh_string in copy_key
spalmer25 Mar 21, 2024
4bf4816
Crypto: use lib_standard crypto_helpers
spalmer25 Mar 21, 2024
59fb215
Refacto: use path_with_curve when both path and curve are provided
spalmer25 Mar 21, 2024
58ec068
THROWS: remove THROWS from keys.(c|h)
spalmer25 Mar 21, 2024
eb15b33
Public key hash: generate public key hash in keys.c
spalmer25 Mar 21, 2024
66ebac6
Refacto: move public key generation for sending to provide_pubkey
spalmer25 Mar 21, 2024
3f68e78
Reafcto: move global converters in to_string
spalmer25 Mar 22, 2024
28c4777
THROWS: remove THROWS in to_string.(c|h)
spalmer25 Mar 22, 2024
d1d7936
Refacto: compare on values not on pointer
spalmer25 Mar 25, 2024
59f91c6
Refacto: use a tz_parser_result in the operation parser
spalmer25 Mar 25, 2024
cb22941
THROWS: remove THROWS in operation.(c|h)
spalmer25 Mar 25, 2024
9e0a9c8
THROWS: remove all THROWS in apdus handling
spalmer25 Mar 25, 2024
4d9752c
Merge pull request #83 from trilitech/palmer@functori@remove-throws
ajinkyaraj-23 Mar 25, 2024
6184916
Test: fix expected git value
spalmer25 Mar 26, 2024
fa71468
Makefile: remove the duplicated VERSION
spalmer25 Mar 26, 2024
04ed506
Makfile: re-enable STANDARD_APP_SYNC_RAPDU
spalmer25 Mar 26, 2024
ee7f71f
Makefile: remove unused BOLOS_SETTINGS flags
spalmer25 Mar 26, 2024
c632d2d
Merge pull request #86 from trilitech/palmer@functori@fix-git-test
ajinkyaraj-23 Mar 26, 2024
b4ebe68
Merge pull request #88 from trilitech/palmer@functori@remove-unused-o…
ajinkyaraj-23 Mar 26, 2024
926d55c
Add instructions for using ledger screensaver
ajinkyaraj-23 Mar 26, 2024
98efca8
Merge pull request #89 from trilitech/87-update-screensaver-readme
ajinkyaraj-23 Mar 26, 2024
ecbc38a
Test: check if values change dynamically
spalmer25 Mar 26, 2024
f8f830e
Display: fix update home screens
spalmer25 Mar 26, 2024
fe96e7a
Merge pull request #85 from trilitech/palmer@fix-screen-update
ajinkyaraj-23 Mar 28, 2024
49d5cd0
Stax: update snapshots to v3.19.0
spalmer25 Apr 4, 2024
1096c49
Merge pull request #93 from trilitech/palmer@functori@update-stax-sna…
ajinkyaraj-23 Apr 4, 2024
0c448d2
UX: rename exit_app to app_exit to override Ledger exit function
spalmer25 Apr 5, 2024
e883538
Merge pull request #96 from trilitech/palmer@functori@force-pin-requi…
spalmer25 Apr 5, 2024
7f21e81
UI: do not redisplay home screens at sign
spalmer25 Apr 3, 2024
6e10118
UI: do not update all screens data
spalmer25 Apr 3, 2024
a3f7090
UX: redisplay HWM by pushing both buttons
spalmer25 Apr 3, 2024
1c7a674
Merge pull request #92 from trilitech/palmer@functori@reduce-updating…
ajinkyaraj-23 Apr 5, 2024
d846193
Add a settings page with facility to turn HWM on/off
ajinkyaraj-23 Mar 27, 2024
dcfe2b7
Remove migrated-to-tenderbake as its redundant.
ajinkyaraj-23 Mar 28, 2024
33ef9d2
Merge pull request #91 from trilitech/90-add-hwm-onoff-in-settings
spalmer25 Apr 8, 2024
27f9ae8
Move tracking of HWM to RAM
ajinkyaraj-23 Apr 8, 2024
1441c29
IO: duplicate the lib_standard_app io_event function for NANOS
spalmer25 Apr 9, 2024
9e15b4e
Replace usage of NVRAM hwm_data to RAM hwm_data
ajinkyaraj-23 Apr 8, 2024
846f39c
Add tests for hwm disabled option
ajinkyaraj-23 Apr 9, 2024
d79e392
UX: introduce low-cost display
spalmer25 Apr 9, 2024
838a6de
Test: check Ledger's screensaver work before signing
spalmer25 Apr 10, 2024
2c9dd63
UX: reintroduce the custom screensaver for NANOS
spalmer25 Apr 9, 2024
b9f0900
Test: add a low-cost screensaver test
spalmer25 Apr 10, 2024
a0df344
UX: add a screensaver clock
spalmer25 Apr 10, 2024
da88272
Test: add a test for automatic low-cost screensaver
spalmer25 Apr 10, 2024
6b93eb5
README: document the screen saver in the README.md
spalmer25 Apr 10, 2024
a92013c
Merge pull request #99 from trilitech/90-add-hwm-onoff-in-settings
ajinkyaraj-23 Apr 11, 2024
886946c
Merge pull request #100 from trilitech/palmer@functori@reintroduce-th…
ajinkyaraj-23 Apr 11, 2024
a42ce18
Ragger: bump version to v1.18.0
spalmer25 Apr 12, 2024
fc266a4
Merge pull request #103 from trilitech/palmer@functori@bump-ragger-ve…
ajinkyaraj-23 Apr 12, 2024
6a961e4
Test: display something before the low-cost screensaver activates
spalmer25 Apr 11, 2024
fe049d1
UX: stop screensaver low after a new display
spalmer25 Apr 11, 2024
fefbdf4
Test: exit screensaver by display should cancel it properly
spalmer25 Apr 12, 2024
9a2d209
UX: stop low-cost screensaver when low-cost display is turned off
spalmer25 Apr 12, 2024
b7b1ac6
Merge pull request #102 from trilitech/palmer@functori@fix-low-cost-s…
ajinkyaraj-23 Apr 12, 2024
3ceff17
- Update readme for new HWM behaviour
ajinkyaraj-23 Apr 11, 2024
f15e706
Merge pull request #104 from trilitech/90-add-hwm-onoff-in-settings
ajinkyaraj-23 Apr 12, 2024
48f1590
Add assert conditions while accessing baking_key in apdu_query.c
ajinkyaraj-23 Apr 22, 2024
84fd156
Refactor: change magic numbers to constant macros for better readabil…
ajinkyaraj-23 Apr 22, 2024
7ca972c
Refactor: Fix or Remove all TODO's
ajinkyaraj-23 Apr 22, 2024
ea4e64f
Fix null pointer checks as pre-conditions for functions in to_string.c
ajinkyaraj-23 Apr 22, 2024
f07f208
Run pytests inside Ledger docker containers for consistent environment.
ajinkyaraj-23 Apr 22, 2024
69ffacf
Merge pull request #108 from trilitech/105-fix-minor-issues-with-code
ajinkyaraj-23 Apr 23, 2024
f283ce0
Makefile: remove silenced warning
spalmer25 Apr 22, 2024
28297c3
to_string: improve the copy_string documentation
spalmer25 Apr 22, 2024
2b6dbf1
microtez_to_string: clarify the trailing 0s elimination
spalmer25 Apr 22, 2024
aec644a
doc/apdu.md: fix the `SIGN`/`SIGN_WITH_HASH` documentation
spalmer25 Apr 23, 2024
51dced4
Test: test the tz display
spalmer25 Apr 23, 2024
15e21a2
Merge pull request #107 from trilitech/palmer@functori@fix-minor-ledg…
ajinkyaraj-23 Apr 23, 2024
a9325cf
Use magic byte instead of tag to differentiate between pre-attestatio…
ajinkyaraj-23 May 28, 2024
10a7046
fix pytezos version as v3.12.0 causes conflict with ledger python ver…
ajinkyaraj-23 May 29, 2024
8813b20
Merge pull request #112 from trilitech/111-simplify-differentiating-b…
ajinkyaraj-23 May 30, 2024
bd0f6d0
[test] remove MetaScreen from TezosUseCaseAddressConfirmation
spalmer25 Jul 5, 2024
4d9eaed
[test] customize UseCaseSettings for our app
spalmer25 Jul 16, 2024
ee60bf4
[test] fix test according to the new stax display/feature
spalmer25 Jul 16, 2024
4ecfeda
[flex] allow building for FLEX device
spalmer25 Jul 16, 2024
7ffacaf
[test] add tests for FLEX device
spalmer25 Jul 16, 2024
2441d38
Merge pull request #114 from trilitech/palmer@functori@support-flex
spalmer25 Jul 17, 2024
c016127
[test] remove use_cases manual fix
spalmer25 Jul 25, 2024
17f3cdb
Merge pull request #118 from trilitech/palmer@functori@bump-ledger-ap…
ajinkyaraj-23 Jul 25, 2024
3e299f7
[tests] remove unused snapshots
spalmer25 Jul 19, 2024
19d9559
[tests] remove unused code
spalmer25 Jul 19, 2024
fd745b6
[address] use standard use case for address flow
spalmer25 Jul 25, 2024
422aa8f
[delegation] use standard use case for delegation flow
spalmer25 Jul 25, 2024
4ae4a25
[reset] use standard use case for reset flow
spalmer25 Jul 26, 2024
bc04353
[setup] use standard use case for setup flow
spalmer25 Jul 26, 2024
4b1a3ff
[test] ensure that toggle switches are persistent in test_basic
spalmer25 Jul 18, 2024
d1fd194
[tests] move fixed snapshots at snapshots root directory
spalmer25 Jul 24, 2024
4a21990
[tests] stop taking snapshots every time
spalmer25 Jul 18, 2024
249102a
[nbgl_settings] merge info array
spalmer25 Jul 18, 2024
5ce3008
[settings] inverse app_context and hwm-switch
spalmer25 Jul 18, 2024
c7c0f99
[touch] use useCaseHomeAndSettings for home and settings display
spalmer25 Jul 18, 2024
9000f8b
[version] Bump baking app version to 2.5.0
spalmer25 Jul 26, 2024
27aacf9
Merge pull request #117 from trilitech/palmer@functori@use-standard-u…
ajinkyaraj-23 Jul 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 9 additions & 6 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
---
BasedOnStyle: Google
IndentWidth: 4
---
Language: Cpp
ColumnLimit: 100
PointerAlignment: Right
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: true
AllowAllParametersOfDeclarationOnNextLine: false
SortIncludes: false
SpaceAfterCStyleCast: true
AllowShortCaseLabelsOnASingleLine: false
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Never
AllowShortFunctionsOnASingleLine: None
BinPackArguments: false
BinPackParameters: false
---
InsertBraces: true
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: None
AllowShortLoopsOnASingleLine: false
...
2,863 changes: 2,863 additions & 0 deletions .doxygen/Doxyfile

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions .github/workflows/build_and_functional_tests_baking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ jobs:
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1
with:
upload_app_binaries_artifact: "compiled_app_binaries"
flags: "APP=tezos_baking"

ragger_tests:
name: Run ragger tests using the reusable workflow
needs: build_application
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@v1
with:
download_app_binaries_artifact: "compiled_app_binaries"
test_dir: test/python/tests_baking

test_dir: test
35 changes: 0 additions & 35 deletions .github/workflows/build_and_functional_tests_wallet.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: cppcheck
on: [pull_request]

jobs:
cppchceck:
name: Cppcheck
runs-on: ubuntu-latest
steps:
- name: Setup
run: sudo apt-get install -y -q cppcheck

- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ github.repository }}
ref: ${{ github.ref }}

- name: Check
run: cppcheck --enable=warning --addon=misra.json --quiet --error-exitcode=1 src/
13 changes: 13 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: docs

on: [pull_request]

jobs:
generate-docs:
name: Doxygen
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: mattnotmitt/[email protected]
with:
doxyfile-path: '.doxygen/Doxyfile'
17 changes: 14 additions & 3 deletions .github/workflows/lint-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
name: Code style check

on: [push, pull_request]
# Use:
# LedgerHQ/ledger-app-workflows/.github/workflows/reusable_lint.yml
# once their lint-checker has been updated

on:
workflow_dispatch:
push:
branches:
- master
- main
- develop
pull_request:

jobs:
job_lint:
Expand All @@ -12,8 +23,8 @@ jobs:
uses: actions/checkout@v2

- name: Lint
uses: DoozyX/clang-format-lint-action@v0.11
uses: DoozyX/clang-format-lint-action@v0.17
with:
source: "./"
extensions: "h,c"
clangFormatVersion: 10
clangFormatVersion: 17
16 changes: 16 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: pre-commit

on: [pull_request]

jobs:
pre-commit:
name: Pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: python -m pip install pre-commit
- run: python -m pip freeze --local
- run: SKIP=clang-format pre-commit run --all-files
16 changes: 0 additions & 16 deletions .github/workflows/swap-ci-workflow.yml

This file was deleted.

11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
bin
debug
build
src/delegates.h

# python environment used for testing
env
# cache files
*__pycache__*
#ide
*.code-workspace
compile_commands.json
# Documentation files
doc/html
doc/latex
# Pytest temporary snapshots
test/snapshots-tmp
22 changes: 22 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# To install hooks, run:
# pre-commit install --hook-type pre-commit
# pre-commit install --hook-type commit-msg

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.4
hooks:
- id: clang-format
name: clang-format
description: Run `clang-format` on C/C++/CUDA files.
entry: clang-format -i
language: system
files: ^
types: [file, c]
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"string": "c"
},
"editor.formatOnSave": true
}
}
138 changes: 0 additions & 138 deletions APDUs.md

This file was deleted.

22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# v2.5.0

## Whats new?
- Support Flex device
- UI/UX standardisation

# v2.4.8

## Whats new?
- Addition of a customised, low-cost screen saver when signing the baking operations
- IO standardisation
- Crypto standardisation
- Code documentation

# v2.4.7

## Whats new?
- Support for DAL+attestation. To be launched in Paris(2024) Tezos protocol.
- python tests based on ragger module of Ledger
- Using Ledger SDK utilities like base58_encode instead of custom encoders.
- Support for screensaver on Nanos+ and Nanox.
- Updated README and installation/testing documentation to reflect changes in Ledger workflow, for example using Ledger docker images and ragger tests.
Loading
Loading