Skip to content
Snippets Groups Projects
Forked from The Tor Project / Core / Arti
Source project has a limited visibility.
  • Nick Mathewson's avatar
    3b0336e8
    netdoc: add a new type for Nicknames · 3b0336e8
    Nick Mathewson authored
    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.
    3b0336e8
    History
    netdoc: add a new type for Nicknames
    Nick Mathewson authored
    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.