pub fn revoke_commitment( commitment: &mut Value, reason: &str, ) -> Result<(), String>
Sets commitment status to “revoked” with a reason.