Avatar
jb55
32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245
I made damus, npubs, and zaps ⚡️ Independent bitcoin core and lightning dev.
Replying to Avatar BITLEAF

Been kicking around this idea for a while to create a desktop p2p app replicating the lightning-poker.com site experience (with a few upgrades like private tables, optional names etc). I’ve got most of it mapped in my head, plenty of hurdles but it feels solvable.

Basic vision: a desktop app using p2p bittorrent style swarms to sync the game state. Provable fair shuffling using commit-reveal hash functions. Could even experiment integrating ecash to avoid a need for a lightning node to take deposits. Ecash tokens represented as chips immediately change ownership with each hand, removing any party holding funds during the game.

It’s a fun thought experiment but don’t hold back, tell me what I’m missing. Maybe I can refine this into a project worth pursuing.

#p2p #poker #lightning #ecash #cashu

nostr:npub1t3ggcd843pnwcu6p4tcsesd02t5jx2aelpvusypu5hk0925nhauqjjl5g4 nostr:npub1de6l09erjl9r990q7n9ql0rwh8x8n059ht7a267n0q3qe28wua8q20q0sd nostr:npub1puffxa96tjjh46cgwnsuse4uegewh0a05w6nmuu0cphcfggz6xasw6deee nostr:npub12zqf55l7l9vsg5f6ssx5pq4f9dzu6hcmnepkm8ftj25fecy379jqkq99h8 nostr:npub1el3mgvtdjpfntdkwq446pmprpdv85v6rs85zh7dq9gvy7tgx37xs2kl27r nostr:npub12r0yjt8723ey2r035qtklhmdj90f0j6an7xnan8005jl7z5gw80qat9qrx nostr:npub10npj3gydmv40m70ehemmal6vsdyfl7tewgvz043g54p0x23y0s8qzztl5h

nostr:npub1m50e65pv09ga73lglrkjgh5tlgj006pv9rce8xdg7rn5kps38gssh2glzq nostr:npub162zpxufpw8pnuytaf0gfxzkqtvk9rvcwkvppa7x57y3n7qkfpg4shatdhy nostr:npub1t04cvx3d0a3le22rgnekk20wvr3l4jpg93vkledsyakas96puqaqwm53m9 nostr:npub1x3n9jcp54npw2l6scvewdvy47jhvj30706u783nu2hktu6a8gc5q8f00qs nostr:npub1qhjxfxpjm7udr0agr6nuhuwf9383e4g9907g64r9hf6y4fh6t6uqpcp36k nostr:npub1lqz2yf2tvutrxwtfnlxtdt9vdam7lwkyk95kehavvm4gfm5rx7ws0p3ak9 nostr:npub18w72kl3a9vr625p8ypk4uxfcz0cpgp5g9k4dq4qj8zd9pdnm4yhqn5s7pw nostr:npub16e3vzr7dk2uepjcnl85nfare3kdapxge08gr42s99n9kg7xs8xhs90y9v6 nostr:npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s nostr:npub1ymt2j3n8tesrlr0yhaheem6yyqmmwrr7actslurw6annls6vnrcslapxnz

P.S lightning-poker team you’ve done great running this site for years. I mean no offense or ill will while exploring this idea

https://cdn.nostrcheck.me/dbc64e036069817292b62e3586d60f56f79cdcb4d9c8d25985cf07c6d4b85823/aff3919d9aa658ba252bac47f10aa2aa57c0f89569b274781b2ec55ffd8639e6.webp

https://cdn.nostrcheck.me/dbc64e036069817292b62e3586d60f56f79cdcb4d9c8d25985cf07c6d4b85823/08a31eb4da3e10ff91339754306934343479fa2a9152043aa88db8e80891a7f4.webp

we definitely need this. ecash would be great for poker chips.

I may have just made the fastest lnurl server based on lnsocket-rust

it keeps a lightning/noise connection open from my VPS to my computer at home.

fetching invoices as fast as lightning...

https://cdn.jb55.com/s/fast-lnurl-lnsocket.mp4

remember cents?

I bought this pin with coinos over nwc via damus, with zaps from nostr. thanks guys!

this never gets old. we must keep building to make instant, non-custodial, decentralized payments a reality for everyone.

nostr:note19m4zh70pas6gyuvu7m7fnhfwsdfqfzh6ssy5wrcu4s4amwh37x9q3n8uw0

eventually, but it wouldn't be called delete, it would be called request delete, since clients could cache notes and ignore delete requests (like damus currently does)

i mean if every node is re-broadcasting to the nodes its connected to then in theory it should mesh ok, but i haven't looked at the code.

we hit 20 peers! worked great.

nostr:note1emv7cgw0jvd59yr9a8gt9j3y8x7ed0h32jq9j6896tcse6y5fe3q2m6000

protests, festivals, talks, schools. lots of cool use cases.

nostr:note1snza5cq6w8peslsxssaaswxphfssw22qhq39jfx9292tpz5qwg6qx80wgd

I have had phone calls with reviewers and at no point did they say what primal is doing is a solution to their issues with my app

the amount of time I want to spend thinking about inbox or outbox relays:

you shouldn't see a repost more than once... otherwise not yet

minibits nwc barely works. We’ve been getting lots of reports on this

this is like the nostrdb binary note format but a bit more space efficient and network friendly. great for transferring notes over the wire. An 74kb contact list crunches to about 37kb. About half the size!

sizes of strings are varint encoded, but it gets better. The first bit in the encoded varint size is used to signify that it is a binary string.

It will detect any hex strings and encode them as binary and encode this hint in the size byte. You can encode the type (string/binary) and length up to 126 in a single byte (aka most things in tags).

This means large contact lists are efficiently compressed: 1 byte for length + type and 32 bytes for pubkeys in tags.

nostr:note1m9uh77q0xfavvxz40nhufrmn9n6298hs4tlzzlhuh2flw5nv3afqwqv6ra

nostr is pretty much ideal for vibe coding. you can rapidly test product ideas, and if they are good they can quickly be integrated into the wider network.

it doesn't matter if the vibe coded app is good client, what matters is the experience it showcases and the data it generates.

nostr:note1uq8t0jwmcwpz63gnj0zqavxuj27ka9t3gnymzrxfmlp6crtepmnsez4t6z

even if/when eternal September comes you can always partition yourself into private relays

nostr:note19d78gvymrdvh3uqnu5706syx3pl4tqzauffheudvp4e6qmkn3dvsq99c4c

finish the apps you build

basic idea:

systems can generate these threads via some automated process, like when someone opens a PR.

Then you can open it up in a nostr AI frontend like notedeck_dave to continue the review without losing any context

nostr:note12aqvwekqrwulx9etu57qlpl2xyn2lan8rmqje67ejwh0xpxe3zaqs5k9d2