Damus
iefan ๐Ÿ•Š๏ธ profile picture
iefan ๐Ÿ•Š๏ธ
@iefan ๐Ÿ•Š๏ธ

I explore & build stuff on โ„•ostr | Certified in Cloud, Code & CyberSec | I spread #Positivity & discuss things/ideas.

Building fanfares.io

Relays (20)
  • wss://relay.snort.social โ€“ read & write
  • wss://nostr.oxtr.dev โ€“ read & write
  • wss://relay.mostr.pub โ€“ read & write
  • wss://relay.momostr.pink โ€“ read & write
  • wss://relay.damus.io โ€“ read & write
  • wss://nostr.wine โ€“ read & write
  • wss://nostrelites.org โ€“ read & write
  • wss://nostr.bitcoiner.social โ€“ read & write
  • wss://nos.lol โ€“ read & write
  • wss://purplepag.es โ€“ read & write
  • ws://eden.nostr.land โ€“ read & write
  • wss://nostr.land โ€“ read & write
  • wss://nostr.mom โ€“ read & write
  • wss://relay.noswhere.com โ€“ read & write
  • wss://sendit.nosflare.com โ€“ read & write
  • wss://nostr.zbd.gg โ€“ read & write
  • wss://eden.nostr.land โ€“ read & write
  • wss://relay.nostr.band โ€“ read & write
  • wss://relay.iefan.net โ€“ write
  • wss://relay.fanfares.io โ€“ read

Recent Notes

note1d5jmu...
iefan ๐Ÿ•Š๏ธ profile picture
This image is slightly outdated, but itโ€™s still a good representation of how our payment verification works, including built-in splits and referrals.

Think of it like signing a contract with our tiny backend before paying for an event. It attests what youโ€™re purchasing and sends back a signed contract. After payment, you provide proof that the token was spent. We cross-check that against the contract, and if everything matches, you get the decryption key.

Weโ€™re also experimenting with open web-of-trust systems, particularly those being built by the Nostr community. Weโ€™re open to letting authors decide which mints they trust, and our system can adapt around that.

Thereโ€™s also a key recovery mechanism if a key gets leaked. Itโ€™s still being developed, but it already works. Key derivation itself is deterministic based on the event, its author, and a specialized tag, while our backend only holds half of the secret.

Eventually, we want to expose all of this through an API so paid content can be integrated across applications. And what if that API could be self-hosted on a $2.50 ESP32?

We know weโ€™ll make mistakes and there will be trade-offs along the way, but weโ€™ll do our best. Feel free to ask me anything about it.
1โค๏ธ1
Johnny · 1w
nostr:nprofile1qqsvdac80utfn4gvly4fv54la0l6cp0udpptnm3ezzyajkdc44w53lg4tcptc Letting authors pick which Cashu mints they trust is what I'd want most as a creator. Your diagram made the unlock flow easy to follow.
note12snc5...
iefan ๐Ÿ•Š๏ธ profile picture
This is where the Fanfares architecture gets really interesting.

We use Nostr, relays, and Cashu for most of the heavy lifting. Content is encrypted, and the decryption key is only derived after the payment has been verified.

With Cashu, that verification can be extremely lightweight. Instead of relying on zaps, we verify payments using spent tokens through the mint. Itโ€™s much more reliable and efficient, and we can cross-check the payment against what was purchased with essentially a single API request.

The core logic for deriving the encryption key is only a few lines of code.

That makes the ESP32 a surprisingly good candidate for running it.

It costs around $2.50, has Wi-Fi built in, and is powerful enough to run this tiny server. We could even build a simple tool that flashes and configures the ESP32 for you in one-click.

Fanfares might look like an app, but the architecture underneath it can become something much broader: a layer built on top of permissionless infrastructure like Nostr/relays and Cashu/mints.

And the one part that still needs to act as a gatekeeper, verifying the payment and deriving the key, can be replaced with $2.50 ESP32 sitting on your desk.

Iโ€™ve also built an interactive diagram explaining our payment architecture, and weโ€™ll publish a deeper technical post on how all of this works.
Matt · 13w
Yes, thankyou! And Iefan, sorry for forgetting your name ๐Ÿ˜… ๐Ÿ˜ ๐Ÿ˜”
iefan ๐Ÿ•Š๏ธ profile picture
Iโ€™ve been part of the core Fanfares team for more than a year now.

Thereโ€™s so much cool stuff weโ€™ve built, and so much Iโ€™ve wanted to talk about. I went through a lot personally this year, so I wasnโ€™t able to share nearly as much as I wanted to. But behind the scenes, we kept building together.

Fanfares has come a long way.

We now have on-device media processing and encryption, split payments powered by Cashu, Blossom support, and an architecture built on top of Nostr.

And one of my favorite parts: the backend is lightweight enough to be hosted on a $2.50 ESP32 board.

A lot went into getting here. Iโ€™m looking forward to finally sharing more about what weโ€™ve built, how it works, and some of the engineering decisions behind it.
iefan ๐Ÿ•Š๏ธ profile picture
A month ago, I lost my mom to cancer. In the span of one year, I lost both of my parents.

I left home when I was 14, and for the last 11 years, there wasnโ€™t a single day when my mom didnโ€™t call me. Now whole days pass in complete silence. I still catch myself expecting her call, and then I remember it will never come. I donโ€™t know how to put that loneliness into words.
๐Ÿซ‚1
nostrnormie · 22w
๐Ÿซ‚
Fr. Josh Miller · 25w
It works. The question is whether or not people should use it. Some people have legitimate reasons to use it, namely diabetics who need to lose weight but have a very challenging time with that due t...
iefan ๐Ÿ•Š๏ธ profile picture
I completely agree. As far as I know, the effects are often temporary if someone stops taking the medication and returns to their previous lifestyle. In many cases, people regain a significant amount of the weight they lost.