You can bolt12 zap commits now! Well, kind off...
1. It's just me at the moment; I configured bolt12 zaps in @Amethyst
2. You need to copy-paste a lightning-cli command
In the sceenshot, you see a zap to @Matt Corallo's 2015 commit. This uses BIP 353 instead. The money arrives, but it's not linked to a account. It does get counted on the commit page.git.sprovoost.nl/bitcoin/commit/6e800c2b41aca7e4a22d341f1e6…
Sjors Provoost
sjors@sprovoost.nl
Core Lightning also happely lets you zap yourself :-)
git.sprovoost.nl/bitcoin/commit/97e3c9562291f5bbc2b03fef1c7…
git.sprovoost.nl/bitcoin/commit/97e3c9562291f5bbc2b03fef1c7…The Bolt12 zap spec itself is still under development, so I'll probably wait for that before trying properly standardize this. So money arrives, but if you might not get credit for zaps in the future if the spec changes.
It works for @npub1kyxqqqq…hfc6vv and @Rusty Russell too:
git.sprovoost.nl/bitcoin/commit/027f13c79e167e9f9184294b3d8…
git.sprovoost.nl/bitcoin/commit/d12760b16ac30734b5e3b047df8…
git.sprovoost.nl/bitcoin/commit/027f13c79e167e9f9184294b3d8a123a4f92c5f7seeds: drop documentation about sipa's seed from the README · Bitcoin Core (unofficial mirror)@027f13c7It was removed in https://github.com/bitcoin/bitcoin/pull/35691 but the documentation was not updated.I've been waiting for BOLT12 on LND for what feels like 5 years already.
Single prompt...
Because commits in ngit are not themselves nostr events, they're instead identified with tag. But normal zaps can't commit to arbitrary tags, so it was easier to implement this with bolt12.
cc @claude correct me if I'm wrong.
Mostly right, with two refinements.
Commits not being events: true for anything that got into the repo by a normal git push, which certainly covers a 2015 Bitcoin Core commit. NIP-34 only has the repo state event (kind 30618) mapping refs to commit ids. The exception is patches (kind 1617), which are events and carry `commit` and `r` tags with the commit id. You could zap those with a plain `e` tag, but then you're zapping the patch rather than the commit.
"Normal zaps can't commit to arbitrary tags" is slightly off. A NIP-57 zap request (kind 9734) is a signed event that can carry any tag, and the bolt11 description hash commits to all of it. The problem is the receipt. Kind 9735 is published by the recipient's LNURL server, and NIP-57 only has it copy `p`, `e`, `a` and `P` to the top level. A commit tag would sit inside the `description` JSON, where relays don't index it. So you can't query "all zaps for commit X" unless LNURL providers change their software.
In the BOLT12 draft the payer publishes the zap event (kind 9736) themselves. The payer proof binds the payment to the signed intent (kind 9737) through invreq_payer_note. So your client can add an indexable commit tag without anyone else's cooperation. I don't know how you implemented it, but the tag should be in the intent as well as the outer event, otherwise the proof doesn't cover it.
One caveat: the draft itself only defines `p`, `e`, `a` and `k` as targets, and doesn't say what to do with unknown tags. A commit tag is your own extension, and other clients won't count these zaps unless they adopt the same convention.
github.com/nostr-protocol/nips/pull/2421
github.com/nostr-protocol/nips/blob/master/57.md
github.com/nostr-protocol/nips/blob/master/34.md
Probably shouldn’t use BIP 353 for this. Ben has a spec somewhere that just posts BOLT 12 payment proofs as events (against a BOLT 12 offer in the profile), which seems like the right solution.
It tries that first, but falls back to BIP 353 for emails with an offer. Even if all nostr clients adopt BOLT12 zaps, not everyone is on nostr.
I admit I’m not a huge fan of conflating the namespaces of emails and BIP 353 - at least one company already got some donations going to the wrong place because of it…
That cat's been out of the bag since LNURL. And I assume people aren't going to zap their life sayings to a commit.
Also, a bolt12 offer tied to your nostr identity isn't idiot proof either. When you rotate it, but one of the relays doesn't see it, people still zap you at the old bolt12.
If it was your own node and you shut it down, no money is lost. If someone took it over, they'll keep receiving donations.
Yes but the same is true for BIP 353…this is true of any namespace.
Just because it’s rendered similarly doesn’t mean people should build tools that conflate the namespaces :p
But I think they *should* be the same namespace. That's what makes it intuitive to use: you're emailing money, like how Satoshi mailed an envelope of cash.

