Which encryption library is noStrudel using? I've looked at the code tree, but Github won't let me search code and it's expansive.

Reply to this note

Please Login to reply.

Discussion

For storing thre nsec locally noStrudel is using the browsers buildin SubtleCrypto API https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto

The code can be found here https://github.com/hzrd149/nostrudel/blob/master/src/services/signing.tsx

Thanks!

And does it verify message signatures locally also, using that Subtle Crypto?

no, event signatures are not verified locally yet. noStrudel just trusts the relays at this point.

verifying them was causing some performance issues although in the future id like to verify the signatures in another thread so it wouldn't effect the performance

Cool!

How are you liking #typescript?

ever since https://vitejs.dev/ ( and other similar bundlers ) came out its been a lot better than plain JavaScript however its probably missing a lot of performance benefits a native language gets

What better about them compared to plain #JavaScript?

the "type checking" its great for the autocomplete in the IDE and its saved me with so many typos, its just missing runtime type checking though

Are they planning to add that? Didnt think that's what #JS was about.

I've found that switching to the VS Code view make it easier to search the code of a project sometimes. From a github page, hit the period key "." or change the com to dev (github.dev)

Thanks, will try that. It doesn't require VS Code installed?