davidben / merkle-tree-certs

Other
9 stars 4 forks source link

Shorten some length prefixes #28

Closed davidben closed 1 year ago

davidben commented 1 year ago

Feedback from Ilari Liusvaara on the list. I picked the lengths mostly arbitrarily. This shaves a few bytes, though it does introduce some length limits over X.509 in TLS today. (TLS uses 2^24-1 for the overall certificate structure. Within a certificate, DER gives variable-length lengths.)

davidben commented 1 year ago

Actually, let me close this and do a larger PR with the rest of the comments too. I missed there were a few more.