Moon on Nostr: i believe iris has to do its elliptic curve calculations in pure javascript because ...
i believe iris has to do its elliptic curve calculations in pure javascript because there aren't accelerated crypto api for its particular implementation. a bunch of operations are done in a service worker in the background. if it were done in the foreground it would constantly be halting the main thread to do that calculation. I hasd similar issues years ago coding ethereum web3 stuff and had to solve it the same way, move a bunch of stuff to a worker thread in the background
Published at
2023-03-01 18:08:19Event JSON
{
"id": "6b9499ba51ae15d025d6515e7af61efb616c1db1d02f8cb02ea7823776abb819",
"pubkey": "dbdf3807187591723175334ce628cb1a139ff1c98c3790630e91c38c3432a578",
"created_at": 1677694099,
"kind": 1,
"tags": [
[
"e",
"97d0ac61070a7188d8c8e414dbfa53ac8107396673da85e25d33723a53364913",
"",
"root"
],
[
"e",
"fb667b6fa51ce479e104abb3f2593c834f87f27ca9a3598589152009edc1de91",
"",
"reply"
],
[
"p",
"ba2883fb4a7f62cb851b9f5411659791cffb2e3fc8b90f683ee5091f413880a1"
],
[
"p",
"c454feac8f8099461a508769f9c1c824b89a4890977b070bed4a1e83a6f87b42"
],
[
"p",
"484c913879330484cdb9efa1f8ef952fa7d0ba3255dd7b67df66d3d3f6c8b7f8"
]
],
"content": "i believe iris has to do its elliptic curve calculations in pure javascript because there aren't accelerated crypto api for its particular implementation. a bunch of operations are done in a service worker in the background. if it were done in the foreground it would constantly be halting the main thread to do that calculation. I hasd similar issues years ago coding ethereum web3 stuff and had to solve it the same way, move a bunch of stuff to a worker thread in the background",
"sig": "8305b22ddf55676dfd539e22ffb6373ce481188e419decc7db160d0a4a960ee70de42bfde8ab27dc217f0c0b5892f7ab6c9794329c382db879749807efc87624"
}