Skip to content

Write unit tests for StellarWalletProvider wallet creation and restoration #435

Description

@Emmzyemms

Description:
StellarWalletProvider handles embedded wallet creation, encrypted storage, and restoration — critical security-sensitive logic with no test coverage.

Acceptance Criteria:

  • Tests cover: wallet creation on first load, wallet restoration from encrypted storage, failed decryption handling, wallet export (public key only)
  • secureStorage is mocked to isolate the provider logic
  • Tests are in __tests__/components/StellarWalletProvider.test.tsx
  • Edge cases: corrupted storage data, missing salt, concurrent mount calls

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions