mfostr

mfostr's avatar
mfostr
npub1maee...p9v4
Working on the http://futureinternet.io πŸ›œ
#AskNostr #Nostr πŸ‘€ WebWorkers and iFrame isolation with window.nostr.signEvent(), as if it were using any NIP-07 extension, represent a great move in the right direction. I recommend that Nostr developers pay attention to OPFS capabilities versus IndexedDB where possible. OPFS avoids metadata leakage and is now part of the Baseline in all browsers. πŸ” View Article β†’
I’m focusing on origin iFrame isolation combined with OPFS (Origin Private File System), which is now a baseline capability in modern browsers: . OPFS is gated behind Secure Contexts , ensuring that these APIs are only available in environments served over HTTPS or equivalent. Unlike IndexedDB, OPFS avoids metadata leakage. With IndexedDB, even if the stored data itself is protected, attackers can sometimes infer information from exposed metadata such as database names, schema details, or object store structures. This can reveal sensitive application logic or usage patterns. OPFS, by contrast, provides a simpler, file-like interface that doesn’t expose this kind of structural metadata, reducing the attack surface. OPFS is also faster because it operates a layer closer to the file system, making it more efficient for handling large binary data and streaming workloads. This performance advantage is particularly useful for applications that need to persist signed content. For example, SQLite can be used on top of OPFS to capture signed posts in a vault for backup. Since these posts are addressable by their SHA‑256 hash, they can be stored and retrieved deterministically, ensuring both integrity and verifiability. Here is some research on how notion use SQLite and WASM to speed up their project. Here is also some documentation from Google for origin policy related info Coming from the SolidProject.org ecosystem, I began this research before discovering Nostr: . It was intended for research only. I shifted gears when I discovered Nostr and have been focusing on wrapping my head around NFC, ISO 7812, NDEF, NTAG424 DNA, OpenPGP, GnuPG KeyGrips, and related technologies. WebWorkers and iFrame isolation provide secure, origin-bound contexts that enforce browser-level security boundaries, aligning with the Secure Contexts standard, but when you add OPFS, it’s like putting that model on steroids. I look forward to watching your project. Great design kick off and this is heading in the right direction.
Content is king πŸ‘‘! The more we lift each other up by following, sharing, and celebrating one another’s posts the stronger the signal we send. Every like, every share, every connection becomes a ripple that reaches our friends and family, inspiring them to join in and engage with our invitations. Together, we’re not just building momentum we’re building a movement. ✊ #AskNostr #Nostr