Closed vks closed 6 years ago
Converting back to the original data type is actually not always possible, because the prefix has 4-bit boundaries, while the original data type might have different ones.
Yes, and even with a vector of bytes, reversing the serialisation might not always work (e.g. you could cut a string half way through a multi-byte Unicode char). We could still have a method returning a Result<K, Error>
Is there some way to get the prefix of a subtrie and convert it back to the original data type?