Theerith Tanti on Nostr: I just use rust-nostr and found that there is two decrypt() function of nip04 and ...
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.
Yuki Kishimoto (npub1drv…seet)I just report some discomfort. I don't know if it is a problem.
#siamstr
#nostr
#rust
#rust-nostr
Published at
2024-06-20 15:02:36Event JSON
{
"id": "d252c51044553ee80fcb72bbc83ec0294fb409857232bce7622831326d517b18",
"pubkey": "f1912c75a0803ce8b9bdb1d1c2f2d9008c5ca2408c2246e3cfea5e40980d6a5f",
"created_at": 1718895756,
"kind": 1,
"tags": [
[
"p",
"68d81165918100b7da43fc28f7d1fc12554466e1115886b9e7bb326f65ec4272",
"",
"mention"
],
[
"t",
"siamstr"
],
[
"t",
"nostr"
],
[
"t",
"rust"
],
[
"t",
"rust-nostr"
]
],
"content": "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\n\nimport nostr::prelude::*;\n\n, then I call decrypt() hoping it will be nip04 but it turnout to be nip44.\n\nnostr:npub1drvpzev3syqt0kjrls50050uzf25gehpz9vgdw08hvex7e0vgfeq0eseet\n\nI just report some discomfort. I don't know if it is a problem.\n\n#siamstr\n#nostr\n#rust\n#rust-nostr",
"sig": "5005c86f62e38b5952a6e908f86c66b4a6cdc95c9f3d1a52fed9b6e56fc43e127efd125a37d8ef3b3e56286684c71cfdf13c2a02856669fc02abd4f48d8bf7ed"
}