Why Nostr? What is Njump?
2024-07-27 17:22:37
in reply to

mleku on Nostr: ah, yeah, that would have broken the damn hash lol anyway, i have to rewrite this to ...

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)
Author Public Key
npub1fjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsmmleku