Skip to content

fix: handle null responses from first siging credential store registered - #173

Merged
patchandthat merged 3 commits into
mainfrom
bug/empty-first-siginingcredential-store-error
Nov 10, 2026
Merged

patchandthat merged 3 commits into
mainfrom
bug/empty-first-siginingcredential-store-error

Conversation

@jhbritton-RSK

@jhbritton-RSK jhbritton-RSK commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Description

When registering signing credential stores, if the first registered one returns null, null is returned by the DefaultKeyMaterialService.GetSigningCredentialsAsync(null) method is called without specifying allowed algorithms.

A fix was added to iterate over each store until a non-null value is returned, or throw an exception if all return null.

Edit: updated documentation around compatibility key store

Type of change

  • Bug fix
  • Feature
  • Refactoring
  • Documentation
  • Other

Does this PR introduce a breaking change?

n/a

Testing

Unit tested added for key material service

LLM Usage

Asked an LLM to review the changed files for any issues.

Other context

n/a

@jhbritton-RSK
jhbritton-RSK force-pushed the bug/empty-first-siginingcredential-store-error branch from 026e8df to 6d163ac Compare November 10, 2026 12:07
@patchandthat
patchandthat merged commit 4292487 into main Nov 10, 2026
3 checks passed
@patchandthat
patchandthat deleted the bug/empty-first-siginingcredential-store-error branch November 10, 2026 16: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