pippellia on Nostr: Vertex customers want to know how many credits are associated with their pubkey. I am ...
Vertex customers want to know how many credits are associated with their pubkey. I am thinking of using:
NIP-42 auth + kind -1 (yes, negative, so there won't be collisions).
So a client that previously authenticated, sends
REQ, id, kind -1, to check how many credits are associated with its pubkey
This seems like the simplest solution I could come up with. What do u think? Do you know libraries that don't allow for negative kinds?
#asknostr and ask
mleku (nprofile…5ckl) Published at
2025-05-01 14:44:14Event JSON
{
"id": "a7019b3ed203ddd24cd2a4d55674045ec1ce93149cd890bd2507889de39af972",
"pubkey": "f683e87035f7ad4f44e0b98cfbd9537e16455a92cd38cefc4cb31db7557f5ef2",
"created_at": 1746110654,
"kind": 1,
"tags": [
[
"t",
"asknostr"
],
[
"p",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"wss://nostr.land/",
"mention"
],
[
"r",
"wss://relay.damus.io/"
],
[
"r",
"wss://relay.nostr.band/"
],
[
"r",
"wss://relay.primal.net/"
],
[
"r",
"wss://auth.nostr1.com/"
]
],
"content": "Vertex customers want to know how many credits are associated with their pubkey. I am thinking of using:\n\nNIP-42 auth + kind -1 (yes, negative, so there won't be collisions).\n\nSo a client that previously authenticated, sends\nREQ, id, kind -1, to check how many credits are associated with its pubkey\n\nThis seems like the simplest solution I could come up with. What do u think? Do you know libraries that don't allow for negative kinds?\n\n#asknostr and ask nostr:nprofile1qyghwumn8ghj7mn0wd68ytnvv9hxgtcpzemhxue69uhhyetpd3ujumtvv44h2tnyv4mz7qpqfjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsfa5ckl ",
"sig": "2dec2f8ae855181d20e264a07fe6cc03e99b04266dd588dc94a8d4ea9202e6977fb5f115257e76db594f804e1819e07171bb1ea4a6eec29d9397774718f6b2c7"
}