มันคือมาแก้ปัญหาที่ใช้ pubkey log in แล้วเห็น DM รึป่าวครับพี่ 😅🙏

Reply to this note

Please Login to reply.

Discussion

ผมอ่านแล้วยังไม่ค่อย Get idea ซักเท่าไหร่

แต่ Npub login อันนี้ไม่เห็น DM อยู่แล้วครับ

ผมเคยลองตอน Login ตลาด PlebeianMarket ครับ มันจะส่ง DM มา แล้วผมลอง Login Npub ใน Nostrudel มันจะไม่โชว์ครับ

ส่วน NIP-42 ผมไม่แนใจว่า

มันคือให้ Relays สามารถอนุญาต DM ของ Whitelisted Client ที่ Relays กรองไว้ ไม่งั้นจะไม่โชว์ (อาจจะสะดวกกับพวก Relays คิดเงิน Subscribe) หรือรวมถึง Event อื่นที่ Whitelisted Client ทำจะแสดงกับ Whitelisted Client ด้วยกันเท่านั้น

🤔🤔🤔

ท่านใดเข้าใจ NIP-42 รบกวนชี้แนะเพื่อเป็นความรู้ทีครับ ขอบคุณครับ

NIP-42 allows a relay to send a “AUTH” challenge to the client. The client needs then signs a message with your pubkey and sends it back to the relay.

This will tell the relay which npub is making the request. If the client then makes a request for DMs that were not sent by them or sent to them, the relay will not provide any DMs back to the client.