Add helper functin that validates a .onion address
Make a function that validates an HS address and can return either a reason as a string or an error code indicating the error type (maybe use errno values for that?).
int is_valid_rendservice_addr(const char *addr, char **reason);
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information