Since this function doesn't return anything but just raises errors, perhaps we should call it something like ``assert_fingerprint``?