feat(engine): add SEP-31 cross-border direct payment protocol support

Aperta
#5 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
fastapi, python

Direzione di ricerca

Start by reading the SEP-31 specification and the existing SEP implementations under engine/app, then inspect engine/app/main.py and engine/app/sep1.py for registration and discovery patterns. The issue names engine/alembic/versions/ and engine/tests/test_sep31.py; use those to understand the data model and expected flow. Done means the listed endpoints, state transitions, signed webhooks, and full-flow tests meet the acceptance criteria.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

complexity: high engine

Context

Cross-border payment providers on Stellar use SEP-31 (Direct Payment API) for anchor-to-anchor remittances paired with SEP-12 KYC and SEP-38 firm quotes. Adding a local SEP-31 implementation enables fintech teams to test sending-anchor flows deterministically against SEPBox.

Scope & Target Files

  • Create engine/app/sep31.py and register in engine/app/main.py
  • Update engine/app/sep1.py (stellar.toml) with DIRECT_PAYMENT_SERVER
  • Add Alembic migration in engine/alembic/versions/ and tests in engine/tests/test_sep31.py

Acceptance Criteria

  • Implement GET /sep31/info advertising receive assets (USDC, XLM) and required sender/receiver KYC field schemas.
  • Implement authenticated POST /sep31/transactions supporting amount, asset_code, quote_id, sender_id, and receiver_id.
  • Implement GET /sep31/transactions/{id} and a simulation transition endpoint for advancing pending_sender -> pending_receiver -> completed.
  • Trigger signed HMAC webhooks on state transitions and cover the full flow in engine/tests/test_sep31.py.
Lingua principale
Python
Stelle
0
Fork
1
Merge medio
19h 43m
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sepbox-dev/sepbox

Tutte le issue di sepbox-dev/sepbox

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.