Sjors Provoost

sjors@sprovoost.nl
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.
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.

← More from Sjors Provoost