diff --git a/CHANGELOG.md b/CHANGELOG.md index e814a44..4986419 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,25 +9,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Inital commit with the brand new Phantasma application +- Initial commit with the brand new Phantasma application. ## [1.0.1] - 2023-11-20 ### Added - Added a method to get all of the number of args. -- Added a new enum -- Added a new Button to the UI Display Address +- Added a new enum. +- Added a new Button to the UI Display Address. ### Fixed -- Fixed Path to generate phantasma address; -- Crypto.c upgraded generations and added missing expections; -- GetPublicKey revamped public key generation; -- Fixed encoded address length; -- Fixed displayed transaction data; +- Fixed Path to generate phantasma address. +- Crypto.c upgraded generations and added missing exceptions. +- GetPublicKey revamped public key generation. +- Fixed encoded address length. +- Fixed displayed transaction data. ### Changed - Updated Gitignore. -- Updated depracated methods (added no_throw). +- Updated deprecated methods (added no_throw). - Updated Python Tests. - Updated git workflows. - Changed the transaction to have the transaction type, name of the contract and method. @@ -41,7 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Added Commands example. -- Added Offsets +- Added Offsets. - Added crypto.c ### Fixed @@ -51,9 +51,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Revamped application to new boilerplate release. -- Updated app_main -- Updated Globals -- Updated depencencies +- Updated app_main. +- Updated Globals. +- Updated dependencies. - Updated send_response to feature phantasma. - Updated tests to align with our coding methodology. diff --git a/Makefile b/Makefile index 35cb5ba..9c71677 100644 --- a/Makefile +++ b/Makefile @@ -47,10 +47,10 @@ endif # Application icons following guidelines: # https://developers.ledger.com/docs/embedded-app/design-requirements/#device-icon -ICON_NANOS = icons/nanos_app_phantasma.gif -ICON_NANOX = icons/nanox_app_phantasma.gif -ICON_NANOSP = icons/nanos_app_phantasma.gif -ICON_STAX = icons/nanos_app_phantasma.gif +ICON_NANOS = icons/nanos_app_phantasma.gif #16x16 +ICON_NANOSP = icons/nanox_app_phantasma.gif #14x14 +ICON_NANOX = icons/nanox_app_phantasma.gif #14x14 +ICON_STAX = icons/stax_app_phantasma.gif #32x32 # Application allowed derivation curves. # Possibles curves are: secp256k1, secp256r1, ed25519 and bls12381g1 diff --git a/glyphs/app_boilerplate_64px.gif b/glyphs/app_boilerplate_64px.gif new file mode 100644 index 0000000..0125e6b Binary files /dev/null and b/glyphs/app_boilerplate_64px.gif differ diff --git a/glyphs/icon_back.gif b/glyphs/icon_back.gif new file mode 100644 index 0000000..a2a7e6d Binary files /dev/null and b/glyphs/icon_back.gif differ diff --git a/glyphs/icon_back_x.gif b/glyphs/icon_back_x.gif new file mode 100644 index 0000000..ff04361 Binary files /dev/null and b/glyphs/icon_back_x.gif differ diff --git a/glyphs/icon_certificate.gif b/glyphs/icon_certificate.gif new file mode 100644 index 0000000..89b529f Binary files /dev/null and b/glyphs/icon_certificate.gif differ diff --git a/glyphs/icon_coggle.gif b/glyphs/icon_coggle.gif new file mode 100644 index 0000000..01c43b2 Binary files /dev/null and b/glyphs/icon_coggle.gif differ diff --git a/glyphs/icon_crossmark.gif b/glyphs/icon_crossmark.gif new file mode 100644 index 0000000..2dcf9d9 Binary files /dev/null and b/glyphs/icon_crossmark.gif differ diff --git a/glyphs/icon_dashboard.gif b/glyphs/icon_dashboard.gif new file mode 100644 index 0000000..5c30551 Binary files /dev/null and b/glyphs/icon_dashboard.gif differ diff --git a/glyphs/icon_dashboard_x.gif b/glyphs/icon_dashboard_x.gif new file mode 100644 index 0000000..33d9b0a Binary files /dev/null and b/glyphs/icon_dashboard_x.gif differ diff --git a/glyphs/icon_down.gif b/glyphs/icon_down.gif new file mode 100644 index 0000000..4f4e39e Binary files /dev/null and b/glyphs/icon_down.gif differ diff --git a/glyphs/icon_eye.gif b/glyphs/icon_eye.gif new file mode 100644 index 0000000..df4bb82 Binary files /dev/null and b/glyphs/icon_eye.gif differ diff --git a/glyphs/icon_left.gif b/glyphs/icon_left.gif new file mode 100644 index 0000000..524226b Binary files /dev/null and b/glyphs/icon_left.gif differ diff --git a/glyphs/icon_processing.gif b/glyphs/icon_processing.gif new file mode 100644 index 0000000..8fe937f Binary files /dev/null and b/glyphs/icon_processing.gif differ diff --git a/glyphs/icon_right.gif b/glyphs/icon_right.gif new file mode 100644 index 0000000..15ff3cf Binary files /dev/null and b/glyphs/icon_right.gif differ diff --git a/glyphs/icon_up.gif b/glyphs/icon_up.gif new file mode 100644 index 0000000..4e13c06 Binary files /dev/null and b/glyphs/icon_up.gif differ diff --git a/glyphs/icon_validate_14.gif b/glyphs/icon_validate_14.gif new file mode 100644 index 0000000..ccb5cab Binary files /dev/null and b/glyphs/icon_validate_14.gif differ diff --git a/glyphs/icon_warning.gif b/glyphs/icon_warning.gif new file mode 100644 index 0000000..08bd4a7 Binary files /dev/null and b/glyphs/icon_warning.gif differ diff --git a/icons/app_boilerplate_32px.gif b/icons/app_boilerplate_32px.gif new file mode 100644 index 0000000..cd3e946 Binary files /dev/null and b/icons/app_boilerplate_32px.gif differ diff --git a/icons/nanox_app_phantasma.gif b/icons/nanox_app_phantasma.gif index 7654e9a..4b1b9c1 100644 Binary files a/icons/nanox_app_phantasma.gif and b/icons/nanox_app_phantasma.gif differ diff --git a/icons/stax_app_phantasma.gif b/icons/stax_app_phantasma.gif new file mode 100644 index 0000000..639a1ba Binary files /dev/null and b/icons/stax_app_phantasma.gif differ diff --git a/src/crypto.c b/src/crypto.c index 6ca3c8c..5666753 100644 --- a/src/crypto.c +++ b/src/crypto.c @@ -133,7 +133,7 @@ int crypto_sign_message(uint16_t *resp_word) { G_context.tx_info.signature_len = sig_size; uint32_t info = 0; - G_context.tx_info.v = (uint8_t) (info & CX_ECCINFO_PARITY_ODD); + G_context.tx_info.v = (uint8_t)(info & CX_ECCINFO_PARITY_ODD); return 0; } diff --git a/src/globals.h b/src/globals.h index 7adbe28..74ccee2 100644 --- a/src/globals.h +++ b/src/globals.h @@ -14,7 +14,7 @@ extern uint8_t G_io_seproxyhal_spi_buffer[IO_SEPROXYHAL_BUFFER_SIZE_B]; /** - * Global variable with the lenght of APDU response to send back. + * Global variable with the length of APDU response to send back. */ extern uint32_t G_output_len; diff --git a/src/ui/action/validate.c b/src/ui/action/validate.c index 7624a13..042f1f8 100644 --- a/src/ui/action/validate.c +++ b/src/ui/action/validate.c @@ -59,7 +59,7 @@ static int crypto_sign_message(void) { PRINTF("Signature: %.*H\n", sig_len, G_context.tx_info.signature); G_context.tx_info.signature_len = sig_len; - G_context.tx_info.v = (uint8_t) (info & CX_ECCINFO_PARITY_ODD); + G_context.tx_info.v = (uint8_t)(info & CX_ECCINFO_PARITY_ODD); return 0; } diff --git a/tests/application_client/boilerplate_response_unpacker.py b/tests/application_client/boilerplate_response_unpacker.py index ff721bf..b20384b 100644 --- a/tests/application_client/boilerplate_response_unpacker.py +++ b/tests/application_client/boilerplate_response_unpacker.py @@ -1,5 +1,4 @@ import base64 -import string from typing import Tuple from struct import unpack