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(error-handling): improve error messages granularity #7

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

keiff3r
Copy link

@keiff3r keiff3r commented Nov 27, 2024

  • Add specific status words for different error scenarios in key derivation and address verification
  • Split generic SW_VERIFY_ADDRESS_FAIL into more specific error codes:
    • SW_BLS_KEY_GEN_FAIL
    • SW_KEY_INIT_FAIL
    • SW_CREDENTIAL_ID_GEN_FAIL
    • SW_ADDRESS_ENCODING_FAIL
    • SW_DERIVATION_PATH_FAIL
  • Enhance error handling in get_bls_private_key and get_private_key_from_path
  • Update function documentation with detailed error codes
  • Remove redundant clang-format option

This change improves debugging capabilities by providing more granular error feedback.

- Add specific status words for different error scenarios in key derivation and address verification
- Split generic SW_VERIFY_ADDRESS_FAIL into more specific error codes:
  - SW_BLS_KEY_GEN_FAIL
  - SW_KEY_INIT_FAIL
  - SW_CREDENTIAL_ID_GEN_FAIL
  - SW_ADDRESS_ENCODING_FAIL
  - SW_DERIVATION_PATH_FAIL
- Enhance error handling in get_bls_private_key and get_private_key_from_path
- Update function documentation with detailed error codes
- Remove redundant clang-format option

This change improves debugging capabilities by providing more granular error feedback.
@keiff3r keiff3r requested a review from a team November 27, 2024 13:12
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #7   +/-   ##
=======================================
  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.

Changes the CURVE_APP_LOAD_PARAMS in the Makefile to use ed25519 instead of secp256k1 for cryptographic operations.
@keiff3r keiff3r merged commit 4de3bf8 into main Nov 27, 2024
44 of 46 checks passed
@keiff3r keiff3r deleted the feat/LDG-506--nano-app-implement-verifyaddress-method branch December 4, 2024 10:58
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.

2 participants