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)
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)