iefan đď¸ on Nostr: Just a heads up: zPay will no longer be a closed app. After the next update, it'll ...
Just a heads up: zPay will no longer be a closed app.
After the next update, it'll adopt an open protocol and include self-hostable lightweight relays for a distributed, decentralized network.
After the next update, it'll adopt an open protocol and include self-hostable lightweight relays for a distributed, decentralized network.
quoting nevent1qâŚ96vy##### Why is zPay v4v & Other Related Features Taking So Long?
Itâs not just because Iâm lazyâthough I am. đ But because I want this to be truly open, permissionless, decentralized, and distributed. Not just another closed app, but an open protocol.
##### Why Not Just Use the Nostr Protocol and Its Relays?
While Nostr was a good option, zPayâs no-database, serverless architecture opened up the potential for something new and purpose-built.
---
##### Introducing zPay Serverless Relay (Under Development)
Instead of a conventional backend, Iâm turning the zPay âbackendâ into a ridiculously lightweight serverless relay.
###### I know âself-hostâ might sound a bit intimidating, but hear me out.
Donât compare âzPay Serverless Relayâ self-hosting with Nostr relay hosting, or even with setups like LNbits or BTCPay Server. Itâs not even close, or fair.
- Ridiculously lightweight & fast
- Free & one-click serverless self-hosting
- Built-in auto-scaling with a robust rate-limiter
---
###### Putting It in Perspective:
Even if your self-hosted zPay serverless relay serves tens of thousands of daily users, executing over 10 million transactions per month, you likely wouldnât pay a penny (bonus: up to 50M+ transactions/month with AWS Lambda).
---
##### Replacing the Database with the URL
Instead of a centralized database, all necessary parameters are packed directly into the original URL and QR code. This includes:
- Encrypted content (`cn`)
- Creatorâs Lightning address (`ln`)
- Optional unlock price (`pr`)
All of these are cryptographically signed.
With these parameters (`cn`, `ln`, and `pr`), the zPay relay initiates payment, verifies it, decrypts, and delivers content after successful verification.
This creates a distributed, tamper-proof system without a database. The only trade-off? Long URLs, but this is easily managed with zPayâs built-in URL shortener proxy. Short URLs simply redirect to the original URL with all parameters visible in the browser.
---
##### zPay Relay Core Features
Beyond paywalled URLs, zPay provides core building blocks to craft nearly any kind of Lightning integration.
###### Core Features Include:
- URL package generation with cryptographic signatures
- URL integrity checks
- Lightning invoice creation
- Real-time payment verification
- Content encryption/decryption
- Auto-delivery after payment
- Custom triggers upon invoice settlement
These core features are fully customizable and adaptable to a wide range of needsâfrom paying for digital and physical products to content access or even paid AI services. zPay relay is designed to make these integrations easy.
---
##### Summary
Instead of a closed app, zPay will be an open protocol supported by distributed, lightweight relays. Itâs fast, lightweight, free, and simple to self-host, with built-in auto-scaling and rate limiting, so you can focus on building new ideas.
The zPay serverless backend becomes a self-hostable relay with features like invoice generation, payment verification, encryption/decryption, and custom triggers on payment settlement.
It operates at nearly zero cost, even for tens of thousands of users or 10M+ transactions per month (up to 50M+ with AWS Lambda). Thereâs no need for a 24/7 live serverâitâs serverless, with built-in auto-scaling to handle spikes and a reasonable rate-limiting system.