Skip to content

refactor: fold Algorithm into TransitKey and unify Algorithm type#132

Merged
allisson merged 2 commits into
mainfrom
improve-codebase
May 25, 2026
Merged

refactor: fold Algorithm into TransitKey and unify Algorithm type#132
allisson merged 2 commits into
mainfrom
improve-codebase

Conversation

@allisson
Copy link
Copy Markdown
Owner

Summary

  • Move Algorithm into the TransitKey struct so GetTransitKey and Get return (*TransitKey, error) instead of a three-value tuple, reducing call-site complexity
  • Replace cryptoDomain.Algorithm with keyring.Algorithm across transit and tokenization layers, eliminating the crypto/domain import alias from all call sites
  • Update repository, usecase, HTTP handler, tests, and generated mocks accordingly

Test plan

  • make test passes with race detector
  • All transit key handler and repository tests updated to match new signatures

🤖 Generated with Claude Code

allisson and others added 2 commits May 25, 2026 10:58
Move the algorithm value into the TransitKey.Algorithm field so
GetTransitKey and Get return (*TransitKey, error) instead of a
three-value tuple. Replace cryptoDomain.Algorithm with keyring.Algorithm
across transit and tokenization to eliminate the crypto/domain import
alias from call sites.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@allisson allisson merged commit cef8d84 into main May 25, 2026
3 checks passed
@allisson allisson deleted the improve-codebase branch May 25, 2026 14:06
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.

1 participant