Skip to content

feat(payments): implement crypto deposit address generation for Stell…#129

Open
Wisdom2788 wants to merge 1 commit intoMissBlue00:mainfrom
Wisdom2788:feature/deposit-address-generation
Open

feat(payments): implement crypto deposit address generation for Stell…#129
Wisdom2788 wants to merge 1 commit intoMissBlue00:mainfrom
Wisdom2788:feature/deposit-address-generation

Conversation

@Wisdom2788
Copy link
Copy Markdown

@Wisdom2788 Wisdom2788 commented Mar 27, 2026

Closes #10


Description

I implemented a dynamic crypto deposit address generation for Stellar, Bitcoin, and Ethereum blockchains using HD wallet derivation.

Changes

  • Added DepositAddress Prisma schema linked to PaymentIntent
  • Implemented SLIP-0010 Ed25519 derivation for Stellar (BIP-44 path m/44'/148'/index')
  • Implemented BIP-44 derivation for Ethereum via ethers v6 HDNodeWallet (m/44'/60'/0'/0/index)
  • Implemented BIP-44 derivation for Bitcoin via bitcoinjs-lib + bip32 (m/44'/0'/0'/0/index)
  • Added PrismaModule (global, degraded mode until DATABASE_URL is set)
  • Added ConfigModule for .env loading
  • Idempotent address generation — same intent + chain always returns same address
  • All endpoints protected by JWT guard

Endpoints

  • POST /payments/intents/:intentId/deposit-address — generate address
  • GET /payments/intents/:intentId/deposit-address — list all addresses for intent
  • GET /payments/intents/:intentId/deposit-address/:chain — get by chain

Testing

Tested locally — all three chains return valid addresses with correct derivation indices.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

@Wisdom2788 is attempting to deploy a commit to the missblue00's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 27, 2026

@Wisdom2788 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Payments: Implement crypto deposit address generation

1 participant