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

crypto/keys/mintkey: fix errors handling in UnarmorPubKeyBytes #5823

Merged
merged 1 commit into from
Mar 18, 2020

Conversation

alessio
Copy link
Contributor

@alessio alessio commented Mar 18, 2020

Check error returned by internal call to unarmorBytes()
and handle accordingly.

Handle empty version field adequately.


For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@alessio alessio force-pushed the alessio/mintkey-bytes-armoring-unhandled-errors branch from 86e196f to 7c2b4a7 Compare March 18, 2020 06:32
Check error returned by internal call to unarmorBytes()
and handle accordingly.

Handle empty version field adequately.
@alessio alessio force-pushed the alessio/mintkey-bytes-armoring-unhandled-errors branch from 8171fac to 98dc194 Compare March 18, 2020 06:33
@alessio alessio marked this pull request as ready for review March 18, 2020 06:34
@codecov
Copy link

codecov bot commented Mar 18, 2020

Codecov Report

Merging #5823 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5823      +/-   ##
==========================================
+ Coverage   32.49%   32.51%   +0.01%     
==========================================
  Files         346      346              
  Lines       39012    39016       +4     
==========================================
+ Hits        12678    12685       +7     
+ Misses      25066    25064       -2     
+ Partials     1268     1267       -1     

Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🇮🇹

@alessio alessio merged commit a84e02f into master Mar 18, 2020
@alessio alessio deleted the alessio/mintkey-bytes-armoring-unhandled-errors branch March 18, 2020 10:33
@alessio alessio mentioned this pull request Mar 20, 2020
13 tasks
alexanderbez pushed a commit that referenced this pull request Mar 24, 2020
Check error returned by internal call to unarmorBytes()
and handle accordingly.

Handle header's empty version field adequately.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants