Skip to content

feat: encrypted digital delivery & dynamic weight support#231

Open
GautamBytes wants to merge 4 commits intoshopstr-eng:mainfrom
GautamBytes:feat/digital-assets-weights
Open

feat: encrypted digital delivery & dynamic weight support#231
GautamBytes wants to merge 4 commits intoshopstr-eng:mainfrom
GautamBytes:feat/digital-assets-weights

Conversation

@GautamBytes
Copy link
Contributor

@GautamBytes GautamBytes commented Feb 19, 2026

Overview
Introduces end-to-end encrypted digital asset delivery and adds support for dynamic weight-based pricing in product listings.

Key Changes

  • Reliability: Added a Blossom server fallback loop. The uploader automatically tries multiple servers if a primary server rejects the encrypted binary.
  • Weights: Added dynamic weight tiers (e.g., 100g, 1kg) with individual pricing logic. Total costs now update dynamically based on selection.
  • UX: Added an attachment preview card for sellers to verify or remove digital assets before publishing.
  • Updated automated order DMs to explicitly include the selected weight for accurate fulfillment.
  • Stability: Implemented Unicode-safe Base64 encoding to prevent application crashes caused by special characters in filenames.

@vercel
Copy link

vercel bot commented Feb 19, 2026

Someone is attempting to deploy a commit to the shopstr-eng Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can replace the AES encryption with NIP-44 for Nostr-native compatibility. You can use https://github.com/shopstr-eng/milk-market/blob/main/utils/encryption/file-encryption.ts as a reference.

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.

2 participants