Skip to content

refactor(architecture): split wallet/service.go (553 lines) and move crypto out of the service layer #158

Description

Summary

internal/domain/wallet/service.go (553 lines) mixes wallet creation, Horizon funding/trustline/USDC seeding, signing, payment security checks, and AES-256-GCM encrypt/decrypt helpers.

Acceptance Criteria

  • Extract crypto (encrypt/decrypt/key-derivation) into a dedicated package
  • Extract Stellar funding/trustline operations into pkg/stellar helpers
  • Service focuses on orchestration + security policy
  • No behavioral change; tests added/kept green

Complexity

High.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programarchitectureArchitecture and designhigh-complexityHigh-complexity backend task requiring deep architectural workrefactorCode restructuring and consolidation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions