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

Fix null pointer in VC verify #94

Merged
merged 3 commits into from
Oct 25, 2023
Merged

Fix null pointer in VC verify #94

merged 3 commits into from
Oct 25, 2023

Conversation

tomdaffurn
Copy link
Contributor

@tomdaffurn tomdaffurn commented Oct 24, 2023

Overview

Fix a null pointer that occurs when verifying a VC signed with an ION DID that has no assertionMethod

How Has This Been Tested?

New unit test added

@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

Merging #94 (3c7ae39) into main (38dfacb) will increase coverage by 0.34%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #94      +/-   ##
==========================================
+ Coverage   69.58%   69.92%   +0.34%     
==========================================
  Files          21       21              
  Lines        1200     1197       -3     
  Branches      136      135       -1     
==========================================
+ Hits          835      837       +2     
+ Misses        294      292       -2     
+ Partials       71       68       -3     
Components Coverage Δ
credentials 67.12% <100.00%> (+1.36%) ⬆️
crypto 33.33% <ø> (ø)
dids 92.81% <ø> (ø)
common 60.83% <ø> (ø)

Copy link
Contributor

@mistermoe mistermoe left a comment

Choose a reason for hiding this comment

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

🏅 🍖 🧇

@tomdaffurn tomdaffurn changed the title fix null pointer in VC verify Fix null pointer in VC verify Oct 25, 2023
@tomdaffurn tomdaffurn marked this pull request as ready for review October 25, 2023 04:11
@tomdaffurn tomdaffurn merged commit 6ceafc5 into main Oct 25, 2023
4 checks passed
@tomdaffurn tomdaffurn deleted the tom/assertionMethodNull branch October 25, 2023 05:47
phoebe-lew added a commit that referenced this pull request Oct 27, 2023
* main: (37 commits)
  refactor test payload generation
  fix payload generation in test
  simplify test
  change test name to be more descriptive
  Revert "add version hipster badge and usage instructions to README"
  add version hipster badge and usage instructions to README
  add TODO
  version bump
  appease detekt
  account for signatures less than 64 bytes
  Fix null pointer in VC verify (#94)
  Do also authentication by default.
  Apply suggestions from code review
  bump version to 0.0.6
  updates
  Default ion creation sets assertion method (#93)
  Added more validation and tests
  Some fixes after testing
  Assertion method should be the default
  Better names
  ...
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.

4 participants