Fix: expect digest not hash for attachments