“How’s it going?” Is usually used hypothetically, and does not require a direct answer. Me stating “All good” doesn’t really give you much info, so I dropped it. 🫂😂
I know I GNed already, but I forgot to mention one thing.
I get stressed and irritated —> I open Damus —> I read some funny shit —> I de-stress —> I go back to do stressful things —> cycle repeats!
😂😂😂🖕🏻🫂🖕🏻GFY!
I’ve been thinking of making my own iOS NIP07 and 44/04 signer/encryptor/decryptor extension for a while. Time is the only obstacle. 😭😭😭 https://i.nostr.build/Y15yIlr3Eh5HXP8U.gif
Update that I made and submitted PR did break it for older versions. I didn’t have anything to check and the original maintainer doesn’t want to maintain it anymore so the “broken” version went out as is 😭😭😭🙏🏻🙇♂️🙇♂️🙇♂️
I’ve added NIP40 expiration to the wrapper event but it doesn’t seem to be respected by the relay or server. Would be cool if all relays supported nip40 for all of the event kinds.
PSA: Nostr.build is now additionally sending Gift Wrapped DMs for OTP and reminders. If your client supports both (17 and 04 nips) you may see duplicates. Cannot reliably discriminate between the clients, so must duplicate 😭🫂🙇♂️
Take current time and in 99.99999999999999% of cases it’s the same as the server. Servers don’t usually drift unless something is very broken, at which point it doesn’t really matter
Any good examples on how I can reach a single person with the message without knowing anything about them but their npub only? And not being able to query any relays and just broadcast it as wide as possible?
Looking at nip17, I still have no idea how I can use nostr-tools and create a correct DM. One part of being secure is having less ways to shoot yourself into a foot, and I see a lot of landmines that will reap my legs off when I read it. I asked for a good example using nostr-tools and failed to find even one yet. 😭😭😭😭
Can’t ask normal users to jump through the hoops, if they are on Damus or any other client that yet to support it, I’ll have a long list of people complaining about broken OTP 😭
async function createNip17Wraps(message, senderPubkey, receiverPubkey)
Where do I stick my SK into? And what do I do with the returned values that are in non-event format?
Always has been the case, people just make a blank statement “<thing> is bad” and have 0 regard for all that came before or relies on it. Plus “bad” is only based on use case, and nothing more than that.
Ok, I’ll take a look again and see if I can implement it. I assume that I do not need to send the “sender” part since it is OTP and nobody needs to check it as a sender
I had some other issues, and didn’t have the messages actually sent anywhere, now they are but none of the clients see them only 04. Hence my point, if it is complex and close to impossible to implement even with examples, it will not be used or will be misused or misimplemented 😭😭😭
😅 the code that does the sending is a complete mess and has a non-public info in it. I’ll try to clean it up and open the source for it. Need to parameterize some of the non-public (but not a high value secret or anything) info.
I am blasting the DMs, and they go out but none of them are seen by the client. My conclusion is that nip17 sucks ass, and only focuses on solving c2c but not s2c problem. I cannot have DMs sent to a specific relay, I don’t know who is using what and when, I need for DMs to reach the recipient and for me to do not need to know about their nprofile or anything else besides their npub, I cannot rely on any relay to have any info about any npub, I need to send it fast and with no WS fuss that is client oriented shit. So many complaints 😭😭😭😅
One fix for types:
function nip44Encrypt(rumor: Rumor | VerifiedEvent, privateKey: Uint8Array, publicKey: string): string {
const key = nip44.v2.utils.getConversationKey(privateKey, publicKey)
return nip44.v2.encrypt(JSON.stringify(rumor), key)
}
It does not have any impact, just cosmetics
Yeah! I do suggest to make a clear documentation about how it should be done, I will contribute if needed. It is super confusing now and no single NIP to look at 🫂😭
Notes by The Fishcake🐶🐾 | export