[tor-commits] [stem/master] Refactor digest coercion into separate method