ismyhc on Nostr: Sounds cool! Have you measured the performance difference between checking signature ...
Sounds cool! Have you measured the performance difference between checking signature and not?
In my nostr swift lib I did a quick test and seems like verifying signature takes an extra 2 milliseconds. I guess this can add up, but if it’s all done on background thread it shouldn’t be that big of a deal. Or maybe I’m just being optimistic. 😅
Published at
2024-04-17 22:41:41Event JSON
{
"id": "13bc8d106211c8641865230d557339481f2cb5ecc26eb66b2a436c32b0221226",
"pubkey": "c5cfda98d01f152b3493d995eed4cdb4d9e55a973925f6f9ea24769a5a21e778",
"created_at": 1713393701,
"kind": 1,
"tags": [
[
"e",
"59ca4478e0c649cfb258777925625499be577dff43af81b0e1ae84f36acf1d27",
"wss://relay.primal.net",
"reply"
],
[
"p",
"fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52"
],
[
"e",
"59ca4478e0c649cfb258777925625499be577dff43af81b0e1ae84f36acf1d27",
"wss://relay.primal.net",
"root"
]
],
"content": "Sounds cool! Have you measured the performance difference between checking signature and not?\n\nIn my nostr swift lib I did a quick test and seems like verifying signature takes an extra 2 milliseconds. I guess this can add up, but if it’s all done on background thread it shouldn’t be that big of a deal. Or maybe I’m just being optimistic. 😅",
"sig": "f98c1b1ca6147126ce3c1c98c33903db5aa960f0a4484c11c74ebd4acefb360f49152805fbe2f90c809b4dbb6453cf85cac6d47c2aa77cb3769311d34e06bbc3"
}