k. on Nostr: im trying to find a spam protection model for nip-17 on relay layer and here is what ...
im trying to find a spam protection model for nip-17 on relay layer and here is what we have:
1. we can't perform whitelisting on pubkey since it's a random temp key.
2. we can't p tags, since we send 2, 1059 event for each dm. each one with one different p tag. we can validate the sender event (we have a p tag and we can check it using authed pubkey) but we can't do it for receiver event. (if we just check the p tag, then anybody can put a whitelisted p tag and send dms.)
i want to know if anybody knows how we can check such thing on a whitelisted relay so only whitelsited users can send dms to each other.
> i hate nip-17. bullshit.
#dev #devstr #asknostr #nip17
Published at
2025-05-14 14:44:11Event JSON
{
"id": "d260d4763f0fb1fd0a752214eaa527356f0c67b58ea70915c542df4e6a3dd175",
"pubkey": "bd4ae3e67e29964d494172261dc45395c89f6bd2e774642e366127171dfb81f5",
"created_at": 1747233851,
"kind": 1,
"tags": [
[
"t",
"dev"
],
[
"t",
"devstr"
],
[
"t",
"asknostr"
],
[
"t",
"nip17"
]
],
"content": "im trying to find a spam protection model for nip-17 on relay layer and here is what we have:\n\n1. we can't perform whitelisting on pubkey since it's a random temp key.\n\n2. we can't p tags, since we send 2, 1059 event for each dm. each one with one different p tag. we can validate the sender event (we have a p tag and we can check it using authed pubkey) but we can't do it for receiver event. (if we just check the p tag, then anybody can put a whitelisted p tag and send dms.)\n\ni want to know if anybody knows how we can check such thing on a whitelisted relay so only whitelsited users can send dms to each other.\n\n\u003e i hate nip-17. bullshit.\n\n#dev #devstr #asknostr #nip17",
"sig": "4bdc103552cab473741b15051394e599368307a03091034c2a0d79000b1b0accc0d74fb7c01579206dbe69a6933232b082341c96974d3e00ad4c743705cd5d7c"
}