Skip to content

[Frontend] Albedo and xBull connectors return fabricated mock public keys #572

@ogazboiz

Description

@ogazboiz

Telegram: https://t.me/+DOylgFv1jyJlNzM0

Why this matters

frontend/src/lib/wallet.ts advertises three wallets in SUPPORTED_WALLETS (Freighter, Albedo, xBull), and WalletModal.tsx renders all three as selectable. But connectAlbedo() and connectXBull() are mocks: they setTimeout for 1.5s and return a buildSession(..., mocked: true) with a fabricated public key like "G" + "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".substring(0,55). That string is not a valid StrKey (no checksum), so any downstream signing or isValidStellarPublicKey check fails. The file header even claims "No mock sessions are created in production paths," which these violate.

A user who picks Albedo or xBull gets a fake session and silently broken functionality.

Acceptance criteria

  • Either implement real Albedo/xBull connectors (e.g. via @creit.tech/stellar-wallets-kit, referenced in the header) …
  • …or remove Albedo/xBull from SUPPORTED_WALLETS/WalletModal until implemented (and update the header comment / WalletModal docstring)
  • No mocked: true session can be created from the production wallet picker

Files to touch

  • frontend/src/lib/wallet.ts
  • frontend/src/components/wallet/WalletModal.tsx

Out of scope

  • Freighter connector (already real).

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't workingfrontendFrontend related tasksweb3Blockchain and wallet integrations

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