Skip to main content

versify

Function versify 

Source
pub fn versify(
    protocol: &str,
    version: &Versionage,
    kind: &str,
    size: u64,
) -> Result<String, KERIError>
Expand description

Creates a version string based on protocol, version, kind, and size

§Arguments

  • protocol - Protocol identifier, one of the valid Protocols values
  • version - Version information consisting of major and minor parts
  • kind - Serialization kind, one of the valid Kinds values
  • size - Length of serialized map that embeds version string field

§Returns

A formatted version string according to the version format

§Errors

Returns an error if the protocol or kind is invalid