Skip to content

SEP-10 web authentication flow for anchor deposits #194

@Nanle-code

Description

@Nanle-code

Labels: anchors, security, advanced

Description

src/lib/anchors.js and AnchorIntegration.jsx compare anchors and methods, but there is no SEP-10 challenge/sign flow to authenticate with an anchor before deposit/withdraw.

Tasks

Implement SEP-10 client helpers in src/lib/anchors.js (challenge → sign with Freighter → token).
UI wizard in src/components/anchors/AnchorIntegration.jsx for “Connect to anchor”.
Audit log entries via src/lib/auditTrail.js (no token persistence in plaintext).
Acceptance criteria

User completes SEP-10 against a documented test anchor on testnet.

JWT/session stored encrypted or session-only per src/lib/encryption.js policy.
Files

src/lib/anchors.js
src/components/anchors/AnchorIntegration.jsx
src/lib/wallet/freighter.js
src/lib/auditTrail.js, src/lib/encryption.js
Reference: SEP-10

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions