Yuki Kishimoto on Nostr: If you import everything with `use nostr::prelude::*` and want to use NIP04, specify ...
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)
```
Published at
2024-06-20 15:10:28Event JSON
{
"id": "4ce382b8ed584500786b359f6d88bc7577d0b697517babcd999bbb71a5f69819",
"pubkey": "68d81165918100b7da43fc28f7d1fc12554466e1115886b9e7bb326f65ec4272",
"created_at": 1718896228,
"kind": 1,
"tags": [
[
"e",
"d252c51044553ee80fcb72bbc83ec0294fb409857232bce7622831326d517b18",
"",
"root"
],
[
"p",
"68d81165918100b7da43fc28f7d1fc12554466e1115886b9e7bb326f65ec4272"
],
[
"p",
"f1912c75a0803ce8b9bdb1d1c2f2d9008c5ca2408c2246e3cfea5e40980d6a5f"
]
],
"content": "If you import everything with `use nostr::prelude::*` and want to use NIP04, specify also the module instead of just the function, like this:\n\n```\nnip04::decrypt(sk, pk, content)\n```",
"sig": "9e49696323cf50e75dbeea2500a87f6c0862059f4e765c7c438b429d9a1f09f34c3ea1bbcac49eaaba99ec815bb7eea464161516013eea9b8142fe6a49b565e9"
}