Replying to Avatar ᴛʜᴇ ᴅᴇᴀᴛʜ ᴏꜰ ᴍʟᴇᴋᴜ

ah, yeah, that would have broken the damn hash lol

anyway, i have to rewrite this to work with binary forms of the keys, i was already looking at the ecdh function in there thinking to myself "this should not be working from hex because i've changed everything to use the actual bytes internally now)"

there's gonna be a lot of proofreading and checking for me to do to get rid of all this hex shennanigans... in my nostr library and in replicatr code the hex is wire encoding and internal encoding is native bytes... there should be a way for me to do the ECDH for this stuff without any stupid translations, i guess i'll be stuck half a day looking through the secp256k1 C library to add this to my p256k library... it is worth it - the verification is 5x faster and the signing is like 3x faster so for serious usage it's a no brainer (eg network transports)

Avatar
cloud fodder 1y ago

i am tryin to resist the urge to write a golang terminal UI for nip17 dms now 🫠🎇

Reply to this note

Please Login to reply.

Discussion

Avatar
cloud fodder 1y ago

the last one i did, i used tcell v2.. 🤔

Avatar
cloud fodder 1y ago

er, no i guess it was gocui that uses tcell v2. it worked pretty good..

Thread collapsed
Thread collapsed