Skip to content

netdoc: add a new type for Nicknames

Nick Mathewson requested to merge nickm/arti:tinystr_nicknames into main

Relay nicknames are always between 1 and 19 characters long, and they're always ASCII: That means that storing them in a [u8;19] will always be possible, and always use less resources than storing them in a String.

Fortunately, the tinystr crate already helps us with this kind of thing.

Merge request reports