calle 👁️⚡👁️ on Nostr: I always wanted to be able to use Cashu in a web widget that can be used to pay for ...
I always wanted to be able to use Cashu in a web widget that can be used to pay for services on a web page (imagine a tiny javascript wallet that loads once you visit a site). This is a huge head ache with ecash since the actual ecash is non-custodial and browsers do not easily support synching state across different pages (for very good reasons). I've been trying to come up with ways how this widget hosted on different webpages could use the same ecash balance and all of them involved some sort of "carrying over state" – either by downloading the ecash from a server that stores it for you, or by synchronizing the derivation path counter and "restoring" the ecash every time you open the page.
I've spent way too much time thinking about this problem. Very very very bad vibes. None of these would have worked without serious issues.
But – I've finally seen the light.
Published at
2024-05-08 06:14:36Event JSON
{
"id": "b150da2d196f20abd026ba4c51b03e3d365a07206b65d25bf2e0bda6df777b29",
"pubkey": "50d94fc2d8580c682b071a542f8b1e31a200b0508bab95a33bef0855df281d63",
"created_at": 1715141676,
"kind": 1,
"tags": [],
"content": "I always wanted to be able to use Cashu in a web widget that can be used to pay for services on a web page (imagine a tiny javascript wallet that loads once you visit a site). This is a huge head ache with ecash since the actual ecash is non-custodial and browsers do not easily support synching state across different pages (for very good reasons). I've been trying to come up with ways how this widget hosted on different webpages could use the same ecash balance and all of them involved some sort of \"carrying over state\" – either by downloading the ecash from a server that stores it for you, or by synchronizing the derivation path counter and \"restoring\" the ecash every time you open the page.\n\nI've spent way too much time thinking about this problem. Very very very bad vibes. None of these would have worked without serious issues.\n\nBut – I've finally seen the light.\n\nhttps://m.primal.net/IEVS.jpg ",
"sig": "71d4ba96d5b6807feaa7988745181677920c8b7c1aec6d9fc79397983679914641eaaae0aa47325b74a1bcb4ad0b8b73617d4afaeb88f70cc8500b933e0230d4"
}