In #42 we discussed how some types, like Message are currently String but that type is perhaps too permissive when encoding. We have a few options to deal with this:
- use
Vec<u8> everywhere
- use a type like
BString to give a string-like api while maintaining that it is just a vec of bytes in memory
- non-type system solution, using comments?
In #42 we discussed how some types, like
Messageare currentlyStringbut that type is perhaps too permissive when encoding. We have a few options to deal with this:Vec<u8>everywhereBStringto give a string-like api while maintaining that it is just a vec of bytes in memory