Erik on Nostr: Something I've been playing around it. I really dislike using nip46 bunkers (both as ...
https://github.com/ebrakke/nostr-signerSomething I've been playing around it. I really dislike using nip46 bunkers (both as a user and a developer), and I browse nostr web apps a lot of my phone, so I also don't enjoy browser extensions.
Not sure if this concept has been tried, and I'm sure theres a lot of drawbacks. But it worked as I expected it to on mobile as on desktop!
It's basically wrapping "postMessage" in a way that makes it act like a Nip07 signer. As long as the user launches the page from a site that needs it, they can just leave it running in another tab, and it'll be able to send messages for signatures.
No severs, no relays, just direct cross window communication to sign events.
https://nostr-signer-test.pages.dev Published at
2025-02-11 20:18:08Event JSON
{
"id": "9ebf1149bbddd468b85a07092e7ddd1856a417819cdda88dae1eebf03678c564",
"pubkey": "1f7178d5579ae2eebc09059e1c91f93414d1e0c9c3fa281f3c1ba79c959cd559",
"created_at": 1739305088,
"kind": 1,
"tags": [
[
"r",
"https://github.com/ebrakke/nostr-signer"
],
[
"r",
"https://nostr-signer-test.pages.dev"
]
],
"content": "https://github.com/ebrakke/nostr-signer\nSomething I've been playing around it. I really dislike using nip46 bunkers (both as a user and a developer), and I browse nostr web apps a lot of my phone, so I also don't enjoy browser extensions. \n\nNot sure if this concept has been tried, and I'm sure theres a lot of drawbacks. But it worked as I expected it to on mobile as on desktop!\n\nIt's basically wrapping \"postMessage\" in a way that makes it act like a Nip07 signer. As long as the user launches the page from a site that needs it, they can just leave it running in another tab, and it'll be able to send messages for signatures. \nNo severs, no relays, just direct cross window communication to sign events. \n\nhttps://nostr-signer-test.pages.dev",
"sig": "e168393d816709caf16d0531bd1bc5410250e7a9c29efe7c36257812914e5f89399ee182c3cd77a91b84e1d5d409e030e558090b0df6587151d220ba86e7a6fd"
}