Why Nostr? What is Njump?
2024-11-07 21:10:47

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.
##### 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.
Author Public Key
npub1cmmswlckn82se7f2jeftl6ll4szlc6zzh8hrjyyfm9vm3t2afr7svqlr6f