"the hang-dog look of a republican official"

It is important here to note the small “r.” The Republican Party did not form until 1854 and Hawthorne is simply referring to officials whose fealty lay with the American government rather than the British monarchy.