搜索

PythonReactSEOPDF
GitHub Skill

agicash-wallet-architecture

Agicash wallet system architecture — components, their responsibilities, and interactions. Use when working on cross-component concerns like server routes, client-server communication, Open Secret integration, encryption/decryption flows, Supabase Realtime subscriptions, or when deciding where new functionality should live (server vs client). Also use when modifying Lightning Address routes, SSR behavior, or database access patterns.

MakePrisms☆ 51 仓库 Stars6 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Agicash Wallet Architecture

Read docs/architecture.md for the full architecture overview with diagrams.

Component Summary

Four components — understand their boundaries before making changes:

Component Responsibility Key constraint
Server (Vercel) Serves client code, handles offline requests (Lightning Address, Sentry tunnel, PWA manifest) Cannot access Open Secret — no seeds, no encryption keys
Client (Browser) Runs the wallet — auth, wallet init, encrypt/decrypt, read/write DB All sensitive operations happen here
Open Secret (AWS Nitro Enclave) Stores auth, seeds, mnemonics, encryption keys Data only accessible after user authentication
Postgres DB (Supabase) Stores wallet data with RLS Sensitive data stored encrypted, each user reads only their own

When to Consult the Architecture Doc

  • Adding a new server route or API endpoint — check what the server can and cannot access (no Open Secret, only non-sensitive DB data via service role key)
  • Working with encryption/decryption — understand the client-side-only encryption model and why the server cannot decrypt
  • Modifying auth or key derivation — understand the Open Secret → Supabase JWT flow
  • Adding or changing Realtime subscriptions — understand the client ↔ DB realtime pattern
  • Deciding server vs client for new functionality — the architecture doc clarifies the boundary: if it needs seeds, keys, or decrypted data, it must be client-side

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-03-11
索引更新时间
2026-03-11
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!