What is Nostr?
David Buchanan /
npub1puj…rreq
2024-03-23 23:28:09
in reply to nevent1q…da7u

David Buchanan on Nostr: arcanicanis Welcome to the club ;) I've also been writing things from scratch, but ...

arcanicanis (npub1pmt…d4ts) Welcome to the club ;)

I've also been writing things from scratch, but mostly to ensure I have a full understanding so I can find bugs in everyone else's impls, not because I felt I had to. What language/environment are you programming in that does not have library for all these primitives already?

The only thing that really stuck out to me is support for signature canonicalization ("low-s") and serialization ("compact" format), which are fairly widely implemented (because they're useful) but not standardized anywhere super official yet (and therefore aren't in standards-oriented libraries like openssl). The closest thing to a spec I've found for the compact format is https://datatracker.ietf.org/doc/draft-mattsson-tls-compact-ecc/ (it's also specified as part of JWT, but they don't give it a name)
Author Public Key
npub1pujn24r5czfn96mcjzg9rw8zh0y0y00vktdj5n4wecalw467a2msk9rreq