Fetch digest uri from a resource

This is a simple solution to #489.