I just use rust-nostr and found that there is two decrypt() function of nip04 and nip44 with same type of parameter (pub, sec, str). With my sillyness I use

import nostr::prelude::*;

, then I call decrypt() hoping it will be nip04 but it turnout to be nip44.

nostr:npub1drvpzev3syqt0kjrls50050uzf25gehpz9vgdw08hvex7e0vgfeq0eseet

I just report some discomfort. I don't know if it is a problem.

#siamstr

#nostr

#rust

#rust-nostr

Reply to this note

Please Login to reply.

Discussion

If you import everything with `use nostr::prelude::*` and want to use NIP04, specify also the module instead of just the function, like this:

```

nip04::decrypt(sk, pk, content)

```