pub fn negotiate_version(
declared_version: &str,
sdk_version: &str,
) -> Result<String, ModuleError>Expand description
Negotiate a compatible protocol version between a declared version and the SDK version (Algorithm A14).
Returns the effective version string, or an error if the versions are incompatible (major mismatch or declared minor exceeds SDK minor).