Replying to Avatar hzrd149

nostr:npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft nostr:npub1xdtducdnjerex88gkg2qk2atsdlqsyxqaag4h05jmcpyspqt30wscmntxy I've been working on adding NIP-46 to noStrudel and while I've mostly got it working I've got a few questions about nsecBunker and login.nostrapps.org

nostr:npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft

The token that nsecBunker provides has a npub of the account and a hex token after the #

#

How is this token supposed to be used? is it supposed to be the secret key that the app uses to talk to nsecBunker?

There also seems to be bug where the first request made by the app asks the user for permission. but then never responds to the app and the app has to make the same request again

nostr:npub1xdtducdnjerex88gkg2qk2atsdlqsyxqaag4h05jmcpyspqt30wscmntxy why dose the nip04_decrypt method return a JSON stringified array with the plaintext inside (ie. '["testing"]') instead of just the plaintext?

Dose either nsecBunker or login.nostrapps.org implement the "describe" or "get_relays" methods?

Sorry for all the questions, but I'm excited to get this working and I figured it would be better to ask here instead of opening issues on GitHub

nip46 spec says that nip04_decrypt returns [plaintext], and that's what ndk's nip46 backend does, not sure what the reasoning is. It's been there from the start, might have been a typo.

I will add describe soon and get_relays later. Also, wdyt of a new get_nip04_key method to let apps request a nip04 shared key to avoid RPC when decrypting lots of DMs? https://github.com/vitorpamplona/amethyst/issues/592#issuecomment-1840775927

Reply to this note

Please Login to reply.

Discussion

Added describe to login.nostrapps.org

`describe` is getting axed on the rewrite of NIP-46

any reason why you want it nostr:npub1ye5ptcxfyyxl5vjvdjar2ua3f0hynkjzpx552mu5snj3qmx5pzjscpknpr ?

nostr:npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft and wdyt of get_nip04_key method to let apps request a nip04 shared key to avoid RPC when decrypting lots of DMs? Context: https://github.com/vitorpamplona/amethyst/issues/592#issuecomment-1840775927

Yeah, we should add that to the nip and nip44 calls

I don't really need it. I was just curious if it was being used anywhere else