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

Feat/ldg 506 nano app implement verifyaddress method #5

Merged
merged 14 commits into from
Nov 26, 2024

Conversation

keiff3r
Copy link

@keiff3r keiff3r commented Nov 22, 2024

No description provided.

Meg4me and others added 6 commits November 19, 2024 20:48
Add support for verifying Concordium addresses on the device. This includes:

- New handler for VERIFY_ADDRESS command
- BLS key generation and credential ID computation
- Base58 address encoding utilities
- UI flows for address verification on both BAGL and NBGL displays
- Constants for BIP32 paths and address formats
- Helper functions for key derivation and address conversion

The implementation follows the legacy address format and allows users to verify
addresses by displaying the identity index, credential counter, and computed
address on device for confirmation.
* refactor(crypto): change private key type from raw bytes to cx_ecfp_private_key_t
* fix(ui): replace format_hex with direct uint32_t formatting for address components
* fix(ui): use memcpy instead of format_hex for address display

The changes improve the handling of private keys by using the proper BOLOS crypto
type and fix the address display by using appropriate formatting methods for both
the address components and the final address string.
Copy link

codecov bot commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.01%. Comparing base (de73020) to head (d1032d3).
Report is 15 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #5   +/-   ##
=======================================
  Coverage   83.01%   83.01%           
=======================================
  Files           3        3           
  Lines          53       53           
=======================================
  Hits           44       44           
  Misses          9        9           
Flag Coverage Δ
unittests 83.01% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/handler/verify_address.c Fixed Show fixed Hide fixed
src/helper/util.c Fixed Show fixed Hide fixed
src/helper/util.c Fixed Show fixed Hide fixed
src/helper/util.c Fixed Show fixed Hide fixed
src/ui/bagl_display.c Fixed Show fixed Hide fixed
src/ui/bagl_display.c Fixed Show fixed Hide fixed
src/ui/bagl_display.c Fixed Show fixed Hide fixed
src/ui/bagl_display.c Fixed Show fixed Hide fixed
src/ui/nbgl_display_verify_address.c Fixed Show fixed Hide fixed
src/ui/nbgl_display_verify_address.c Fixed Show fixed Hide fixed
src/ui/nbgl_display_verify_address.c Fixed Show fixed Hide fixed
src/ui/nbgl_display_verify_address.c Fixed Show fixed Hide fixed
src/helper/util.c Fixed Show fixed Hide fixed
src/ui/bagl_display.c Fixed Show fixed Hide fixed
src/ui/bagl_display.c Fixed Show fixed Hide fixed
src/ui/bagl_display.c Fixed Show fixed Hide fixed
src/ui/bagl_display.c Fixed Show fixed Hide fixed
src/ui/bagl_display.c Fixed Show fixed Hide fixed
src/ui/nbgl_display_verify_address.c Fixed Show fixed Hide fixed
src/ui/nbgl_display_verify_address.c Fixed Show fixed Hide fixed
src/ui/nbgl_display_verify_address.c Fixed Show fixed Hide fixed
src/ui/nbgl_display_verify_address.c Fixed Show fixed Hide fixed
src/helper/util.c Fixed Show fixed Hide fixed
src/helper/util.c Fixed Show fixed Hide fixed
src/helper/util.c Fixed Show fixed Hide fixed
src/helper/util.c Fixed Show fixed Hide fixed
@keiff3r keiff3r marked this pull request as ready for review November 26, 2024 11:23
@keiff3r keiff3r requested a review from a team November 26, 2024 11:24
src/handler/verify_address.c Outdated Show resolved Hide resolved
src/helper/util.c Outdated Show resolved Hide resolved
src/helper/util.c Outdated Show resolved Hide resolved
@keiff3r keiff3r requested a review from GuilaneDen November 26, 2024 12:22
@keiff3r keiff3r merged commit 5bc34c5 into main Nov 26, 2024
45 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants