tor-keymgr: Replace ArtiPathComponent with Slug
This MR replaces ArtiPathComponent
with Slug
. As a result, some previously valid ArtiPaths
are now rejected (ArtiPath
s can no longer contain unicode characters or .
), and some previously invalid ArtiPath
s are now accepted (now ArtiPath
can start with -
, _
. I'm not sure why this was forbidden in the first place).
HsClientSpecifier
and HsNickname
are now Slug
s internally.
Questions for the reviewer:
- should we keep
ArtiPathComponent
(as a newtype forSlug
) in case we want to introduce additional restrictions for the slugs that make upArtiPathComponent
s?
Closes #1193 (closed), #1092 (closed)
Edited by gabi-250