Replying to Avatar hzrd149

nostr:npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6 nostr:npub1ehhfg09mr8z34wz85ek46a6rww4f7c7jsujxhdvmpqnl5hnrwsqq2szjqv nostr:npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn nostr:npub1w4uswmv6lu9yel005l3qgheysmr7tk9uvwluddznju3nuxalevvs2d0jr5 I integrated NIP-55 into one of the native apps I'm working on using nostr:npub1ehhfg09mr8z34wz85ek46a6rww4f7c7jsujxhdvmpqnl5hnrwsqq2szjqv capacitorjs plugin and I had some questions about the spec

1. Why are there a mix of "pubkey" and "npub" (bech32) when its been a nostr standard to have all public keys in hex format?

2. The spec says that nip04 and nip44 encrypt and decrypt calls return a "signature" and "id". is that a typeo? I don't see how an encrypt or decrypt call would return a signature

3. What is the use for the "decrypt_zap_event"?

nostr:npub1ehhfg09mr8z34wz85ek46a6rww4f7c7jsujxhdvmpqnl5hnrwsqq2szjqv for the capacitorjs plugin is "app.icon" from "getInstalledSignerApps" always a base64 encoded image/png or could it ever be a URL?

nostr:npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn Thanks for making a working example, I used a lot of your code for reference 😀

Also thanks for all the work you guys (and everyone I'm forgetting) put in to this to get this working, its a much better native experience than using NIP-46

1 - there's a pull request to change that but the nip repo is slow

2 - This could also be changed. I think result would be better for all kinds

3 - Private zaps use a different method of encrypting the data

Reply to this note

Please Login to reply.

Discussion

Where is the PR? Is Amber updated to the new way?

https://github.com/nostr-protocol/nips/pull/1341

I updated amber to the new way, the only call I didn't change yet is the return value from get_public_key

OK, looks like Amethyst has also changed it, and I imagine other clients like Voyage are also cool with it since Amber is changed, so I merged it.

nostr:npub1useke4f9maul5nf67dj0m9sq6jcsmnjzzk4ycvldwl4qss35fvgqjdk5ks nostr:npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z nostr:npub1xpuz4qerklyck9evtg40wgrthq5rce2mumwuuygnxcg6q02lz9ms275ams