Skip to content

feat: add encrypted off-chain blob storage for large prompts - #534

Merged
barry01-hash merged 1 commit into
PromptMintLabs:mainfrom
Jerry-Tekh:main
Aug 31, 2026
Merged

feat: add encrypted off-chain blob storage for large prompts#534
barry01-hash merged 1 commit into
PromptMintLabs:mainfrom
Jerry-Tekh:main

Conversation

@Jerry-Tekh

Copy link
Copy Markdown

Implements off-chain blob storage for large encrypted prompt payloads. When the encrypted ciphertext exceeds the on-chain 4096-byte limit, the frontend uploads it to configurable blob storage (HTTP blob store, IPFS, S3, etc.) and stores the returned blob reference on-chain instead. The unlock service resolves blob references back to ciphertext before decryption.

Changes:

  • Add frontend blob storage utility (src/lib/stellar/blobStorage.ts) with upload/fetch helpers
  • Update CreatePromptForm to auto-upload oversized encrypted payloads to blob storage
  • Update unlock service (api/prompts/unlock.ts) to resolve blob references before decryption
  • Add server-side in-memory blob store (server/src/services/blobStorage.ts) and routes (server/src/routes/blobRoutes.ts) for development/testing
  • Register blob routes in Express server
  • Add VITE_BLOB_STORAGE_ENDPOINT and VITE_IPFS_GATEWAY env vars to .env.example

closes #499

@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@Jerry-Tekh 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

@barry01-hash

Copy link
Copy Markdown
Collaborator

Resolve Conflicts

@barry01-hash
barry01-hash merged commit 11d9a33 into PromptMintLabs:main Aug 31, 2026
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.

Add encrypted off-chain blob storage for large prompts

2 participants