nostr:nprofile1qqs827g8dkd07zjvlhh60csytujgd3l9mz7x807xk3fewge7rwlukxgpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhszrnhwden5te0dehhxtnvdakz7qgswaehxw309ahx7um5wghx6mmd9usjfpck, I'm working on finalizing the Amber integration for nostr:nprofile1qqs2xugc5jyguqkj36rk0syv4tmnkjdtmtperttl7x9rqjy3ustdcvcppemhxue69uhkummn9ekx7mp0qy2hwumn8ghj7un9d3shjtnyv9kh2uewd9hj7qg6waehxw309aek2mnyd96zumn0wdnxcctjv5hxxmmd9uxa0uz8, with the last thing needed being the decryption methods (NIP-04 and NIP-44). For the life of me, I can't seem to get them to work. I've put in the encrypted text with and without the iv value and the hex pubkey of the sender and receiver; regardless of the combination of those that I use, it always comes back with "Could not decrypt the message". Do you have any idea of what I could be doing wrong? The messages are properly encrypted, sent, and decryptable on other clients, btw.
#asknostr #dev
I'm not a coder, sorry can't help directly. I can see you trying to solve a problem, Shopstr looks v promising. we got some clever brains here, you will get there eventually. Keeping going man ✊
Maybe you are sending a wrong pubkey.
Guess:
Decryption tricked me once in ndk because sender and receiver pubkey namings can be confusing.
You always need to decrypt with providing the recipient pubkey(p-tag) and the PEER pubkey.
This "peer pubkey" could be your user (your user sent a message) OR another user (p-tag refers to YOUR user as recipient and someone sent your user a message).
I had to check which is which to get it right.
nostr:nevent1qqsw5wup643l7rtalvk65ypwykgue94hukjqxw45hf2zc6kprshx2zgpz3mhxw309akx7cmpd35x7um58g6rsd3e9upzp5mwszpl57ekmthxgm9ck0uel64rmz095wt9pp6p7qp7yxkqk6lvqvzqqqqqqy5862kf