[Extension] Encrypt/decrypt contact blob (AES-256-GCM)
Maintainers usually reply within 2 days
@piyalbasu is already working on this.
Since Jun 7, 2026.
Assessment
This issue has not been assessed yet.
Description
Implement client-side encryption of the contacts blob on the extension. Completes the auth + crypto plumbing (alongside #2769 auth keypair and #2770 JWT generation) before any contacts UI.
Derive the contacts encryption key via HMAC-SHA256(seedBytes, "freighter-contacts-key") — domain-separated from the auth keypair. Encrypt/decrypt the contacts-list JSON with AES-256-GCM. Wire shape: {"contactCipher": "<base64>"} — base64-encode ciphertext (nonce ‖ tag ‖ body) on write, base64-decode then decrypt on read.
See Cross-Platform Contact Sync design doc — Phase 2 § Contact blob encrypt/decrypt + FR-6.3/6.4/6.5 of the FE spec.
Acceptance:
- Round-trip: same seed + JSON → encrypt → base64 → PUT → GET → base64-decode → decrypt → identical JSON.
- Fresh 96-bit nonce per write.
- Wrong-seed decryption fails with a clear, distinct error (not garbage output, not a silent empty blob).
- Empty
contactCipher(new user) decodes to an empty contacts blob without error. - Key cached in memory for the session only; never persisted.
- Dominant language
- TypeScript
- Stars
- 122
- Forks
- 62
- Avg merge
- 4d 19h
- Merged PRs (30d)
- 41
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from stellar/freighter
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
Write the banner publishing guidePossibly taken @aristidesstaffieri claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
stellar/freighter#3152 · 1 assignee ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 2 days
-
Dont call blockaid on empty token listMay be free again A pull request for this issue was closed without being merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 2 days
-
follow-up
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
All issues in stellar/freighter
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
zabuton-app/meguri#875 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
iruzen-dono/workless#117 ·
Maintainers usually reply within 1 day
-
area:api area:web wave wave:trivial
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
vetro-protocol/vetro-monorepo#1321 ·
Maintainers usually reply within 1 day