pub fn smell(raw: &[u8]) -> Result<Smellage, KERIError>Expand description
Extract and return an instance of Smellage from a version string inside raw serialization.
§Arguments
raw- A byte slice containing serialized incoming message stream. Assumes start of stream is JSON, CBOR, or MGPK field map with first field is labeled ‘v’ and value is version string.
§Returns
A Result containing a Smellage struct with extracted information or an error
§Errors
Returns a ShortageError if the raw bytes are too short to contain a full version string. Returns a VersionError if the version string is invalid or not found within MAXVSOFFSET.